Add a new task to essentials, and update the dependency version of libz
This commit is contained in:
parent
09a532b742
commit
bf7d99fff6
2 changed files with 23 additions and 3 deletions
22
build.gradle
22
build.gradle
|
@ -162,10 +162,31 @@ jar.finalizedBy('reobfJar')
|
||||||
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
|
// However if you are in a multi-project build, dev time needs unobfed jar files, so you can delay the obfuscation until publishing by doing
|
||||||
// publish.dependsOn('reobfJar')
|
// publish.dependsOn('reobfJar')
|
||||||
|
|
||||||
|
task devJar(type: Jar) {
|
||||||
|
from sourceSets.main.output
|
||||||
|
from sourceSets.main.allJava
|
||||||
|
classifier = 'dev'
|
||||||
|
manifest {
|
||||||
|
attributes([
|
||||||
|
"Specification-Title": project.name,
|
||||||
|
"Specification-Vendor": "zontreck",
|
||||||
|
"Specification-Version": "1",
|
||||||
|
"Implementation-Title": project.name,
|
||||||
|
"Implementation-Version": version,
|
||||||
|
"Implementation-Vendor": "zontreck",
|
||||||
|
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")
|
||||||
|
])
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
devJar.finalizedBy('reobfJar')
|
||||||
|
|
||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
artifact jar
|
artifact jar
|
||||||
|
artifact devJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
repositories {
|
repositories {
|
||||||
|
@ -174,7 +195,6 @@ publishing {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType(JavaCompile).configureEach {
|
tasks.withType(JavaCompile).configureEach {
|
||||||
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
|
options.encoding = 'UTF-8' // Use the UTF-8 charset for Java compilation
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ org.gradle.jvmargs=-Xmx3G
|
||||||
org.gradle.daemon=false
|
org.gradle.daemon=false
|
||||||
|
|
||||||
|
|
||||||
my_version=1.0.0.0228230914
|
my_version=1.0.0.0228230928
|
||||||
my_modgroup="dev.zontreck.essentials"
|
my_modgroup="dev.zontreck.essentials"
|
||||||
my_modid="ariasessentials"
|
my_modid="ariasessentials"
|
||||||
|
|
||||||
|
@ -12,4 +12,4 @@ my_modid="ariasessentials"
|
||||||
mc_version=1.18.2
|
mc_version=1.18.2
|
||||||
forge_version=40.2.1
|
forge_version=40.2.1
|
||||||
parchment_version=2022.11.06
|
parchment_version=2022.11.06
|
||||||
libz_version=1.0.5.0228230829
|
libz_version=1.0.5.0228230925
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue