2014-09-26 16:14:44 +02:00
|
|
|
task myJavadocs(type: Javadoc) {
|
|
|
|
source = sourceSets.api.java
|
|
|
|
include "appeng/api/**"
|
|
|
|
|
|
|
|
classpath = configurations.compile
|
|
|
|
}
|
|
|
|
|
|
|
|
task javadocJar(type: Jar, dependsOn: myJavadocs) {
|
|
|
|
classifier = 'javadoc'
|
|
|
|
from 'build/docs/javadoc/'
|
|
|
|
}
|
|
|
|
|
2015-05-19 20:55:31 +02:00
|
|
|
task sourceJar(type: Jar, dependsOn: classes) {
|
|
|
|
classifier = 'sources'
|
|
|
|
from sourceSets.main.allSource
|
|
|
|
}
|
|
|
|
|
2014-09-26 16:14:44 +02:00
|
|
|
task devJar(type: Jar) {
|
|
|
|
|
|
|
|
manifest {
|
|
|
|
attributes 'FMLCorePlugin': 'appeng.transformer.AppEngCore'
|
|
|
|
attributes 'FMLCorePluginContainsFMLMod': 'true'
|
|
|
|
}
|
|
|
|
|
|
|
|
from(sourceSets.main.output) {
|
|
|
|
include "appeng/**"
|
|
|
|
include "assets/**"
|
|
|
|
include 'mcmod.info'
|
|
|
|
}
|
|
|
|
|
|
|
|
classifier = 'dev'
|
|
|
|
}
|
|
|
|
|
|
|
|
task apiJar(type: Jar) {
|
2015-03-29 09:40:27 +02:00
|
|
|
from sourceSets.api.java
|
|
|
|
include "appeng/api/**"
|
2014-09-26 16:14:44 +02:00
|
|
|
|
2015-03-29 09:40:27 +02:00
|
|
|
from sourceSets.main.output
|
|
|
|
include "appeng/api/**"
|
2014-09-26 16:14:44 +02:00
|
|
|
|
|
|
|
classifier = 'api'
|
|
|
|
}
|
|
|
|
|
|
|
|
artifacts {
|
|
|
|
archives devJar
|
|
|
|
archives apiJar
|
|
|
|
archives javadocJar
|
2015-05-19 20:55:31 +02:00
|
|
|
archives sourceJar
|
2014-09-26 16:14:44 +02:00
|
|
|
}
|