Add missed files
This commit is contained in:
36
build.gradle
36
build.gradle
@@ -1,11 +1,19 @@
|
||||
subprojects {
|
||||
|
||||
|
||||
def version_base = "${project.version_major}.${project.version_minor}"
|
||||
version = "${version_base}.${project.version_patch}"
|
||||
|
||||
// Jenkins
|
||||
if (System.getenv('BUILD_NUMBER') != null) {
|
||||
version = version_base + "." + System.getenv('BUILD_NUMBER') + "d"
|
||||
}
|
||||
|
||||
apply plugin: 'java'
|
||||
|
||||
|
||||
java.toolchain.languageVersion = JavaLanguageVersion.of(17)
|
||||
java.withSourcesJar()
|
||||
java.withJavadocJar()
|
||||
|
||||
//java.withSourcesJar()
|
||||
//java.withJavadocJar()
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes([
|
||||
@@ -22,25 +30,16 @@ subprojects {
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
repositories {
|
||||
|
||||
mavenCentral()
|
||||
|
||||
maven {
|
||||
name = 'Sponge / Mixin'
|
||||
url = 'https://repo.spongepowered.org/repository/maven-public/'
|
||||
}
|
||||
|
||||
maven {
|
||||
name = 'BlameJared Maven (CrT / Bookshelf)'
|
||||
url = 'https://maven.blamejared.com'
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
|
||||
it.options.encoding = 'UTF-8'
|
||||
it.options.release = 17
|
||||
}
|
||||
@@ -49,7 +48,10 @@ subprojects {
|
||||
// metadata includes mapped dependencies which are not reasonably consumable by
|
||||
// other mod developers.
|
||||
tasks.withType(GenerateModuleMetadata) {
|
||||
|
||||
enabled = false
|
||||
}
|
||||
}
|
||||
|
||||
clean {
|
||||
delete "$rootDir/artifacts"
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user