Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
/ GradleApiMaker Public archive

A gradle plugin to create a Jar with only types informations

Notifications You must be signed in to change notification settings

HydreIO/GradleApiMaker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API

Api is a gradle plugin to remove all code from methods

How To use it

To use it you can add this to your build.gradle

buildscript {
     repositories(){
         maven {
             url 'https://artifactory.aresrpg.fr/gradle'
             credentials {
                 username project.hasProperty('aresuser') ? aresuser : System.getenv('aresuser')
                 password project.hasProperty('arespass') ? arespass : System.getenv('arespass')
             }
          }
     }
     dependencies {
         classpath 'fr.aresrpg.gradle:Api:0.+'
     }
 }

It will add to your build.gradle two tasks described below

Task:

  • api

This task write all the api class to build/api

  • apijar

This task create a jar from build/api , it use by default the same folder as gradle's jar task but with classifier api . It can be customized like all Jar tasks

Components

The plugin add one component api , it use same dependencies as java components

Maven

    publishing {
        repositories {
            ...
        }
    
        publications {
            name(MavenPublication){
                from components.api
            }
        }
    }

About

A gradle plugin to create a Jar with only types informations

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages