Update build.gradle
This commit is contained in:
parent
07f069965b
commit
1088de7128
34
build.gradle
34
build.gradle
@ -82,7 +82,7 @@ def replaceProperties = [minecraft_version : minecraft_version, minecraft_vers
|
||||
forge_version : forge_version, forge_version_range: forge_version_range,
|
||||
loader_version_range: loader_version_range,
|
||||
mod_id : mod_id, mod_name: mod_name, mod_license: mod_license,
|
||||
mod_version: mod_version,
|
||||
mod_version : mod_version,
|
||||
mod_authors : mod_authors, mod_description: mod_description]
|
||||
processResources {
|
||||
inputs.properties replaceProperties
|
||||
@ -98,19 +98,22 @@ mixin {
|
||||
config "${mod_id}.mixins.json"
|
||||
}
|
||||
|
||||
java{
|
||||
java {
|
||||
withSourcesJar()
|
||||
}
|
||||
|
||||
jar {
|
||||
manifest {
|
||||
attributes(["Specification-Title" : mod_id,
|
||||
"Specification-Vendor" : mod_authors,
|
||||
"Specification-Version" : "1",
|
||||
"Implementation-Title" : project.name,
|
||||
"Implementation-Version" : project.jar.archiveVersion,
|
||||
"Implementation-Vendor" : mod_authors,
|
||||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ")])
|
||||
attributes([
|
||||
"Specification-Title" : mod_id,
|
||||
"Specification-Vendor" : mod_authors,
|
||||
"Specification-Version" : "1",
|
||||
"Implementation-Title" : project.name,
|
||||
"Implementation-Version" : project.jar.archiveVersion,
|
||||
"Implementation-Vendor" : mod_authors,
|
||||
"Implementation-Timestamp": new Date().format("yyyy-MM-dd'T'HH:mm:ssZ"),
|
||||
"MixinConfigs" : "${mod_id}.mixins.json"
|
||||
])
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,11 +123,18 @@ jar.finalizedBy('reobfJar')
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenJava(MavenPublication) {
|
||||
artifact jar
|
||||
register('mavenJava', MavenPublication) {
|
||||
from components.java
|
||||
groupId = mod_group_id
|
||||
artifactId = mod_id
|
||||
}
|
||||
}
|
||||
repositories {
|
||||
maven {
|
||||
name = "Disk"
|
||||
url = uri("D:/git/maven-repository-raw")
|
||||
}
|
||||
}
|
||||
repositories {}
|
||||
}
|
||||
|
||||
tasks.withType(JavaCompile).configureEach {
|
||||
|
Loading…
x
Reference in New Issue
Block a user