Updated gradle scripts (#3871)

Includes #3819
This commit is contained in:
yueh
2018-12-23 22:41:11 +01:00
committed by GitHub
parent 524b26d2a2
commit ed643787df
2 changed files with 25 additions and 17 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
aeversion=rv5 aeversion=rv6
aechannel=alpha aechannel=alpha
aebuild=0 aebuild=0
aegroup=appeng aegroup=appeng
+24 -16
View File
@@ -24,36 +24,44 @@ allprojects {
} }
javadoc { javadoc {
options.encoding = 'UTF-8' options.encoding = 'UTF-8'
options.charSet = 'UTF-8' options.charSet = 'UTF-8'
} }
task javadocs(type: Javadoc) { task javadocs(type: Javadoc) {
source = sourceSets.api.java source = sourceSets.api.java
include "appeng/api/**" include "appeng/api/**"
// Due to ForgeGradle having to be a special snowflake, // Due to ForgeGradle having to be a special snowflake,
// we have to add some custom configurations to the normal compile configuration and hope it does not break. // we have to add some custom configurations to the normal compile configuration and hope it does not break.
classpath = configurations.compile + configurations.forgeGradleMc + configurations.forgeGradleMcDeps classpath = configurations.compile + configurations.forgeGradleMc + configurations.forgeGradleMcDeps
} }
task javadocJar(type: Jar, dependsOn: javadocs) { task javadocJar(type: Jar, dependsOn: javadocs) {
from javadoc.destinationDir from javadoc.destinationDir
classifier = 'javadoc'
classifier = 'javadoc'
} }
task apiJar(type: Jar) { task apiJar(type: Jar) {
from sourceSets.api.java from sourceSets.api.java
include "appeng/api/**" include "appeng/api/**"
from sourceSets.api.output from sourceSets.api.output
include "appeng/api/**" include "appeng/api/**"
classifier = 'api' classifier = 'api'
}
task sourceJar(type: Jar, overwrite: true) {
from sourceSets.api.allSource
from sourceSets.main.allSource
classifier = 'sources'
} }
artifacts { artifacts {
archives apiJar archives apiJar
archives javadocJar archives javadocJar
archives sourceJar archives sourceJar
} }