|
|
@ -2,14 +2,14 @@ import org.apache.tools.ant.filters.ReplaceTokens
|
|
|
|
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
plugins {
|
|
|
|
id 'org.cadixdev.licenser' version '0.6.1' apply false
|
|
|
|
id 'org.cadixdev.licenser' version '0.6.1' apply false
|
|
|
|
id 'fabric-loom' version '1.8.0-alpha.6' apply false
|
|
|
|
id 'fabric-loom' version '1.7-SNAPSHOT' apply false
|
|
|
|
id 'io.github.goooler.shadow' version '8.1.8'
|
|
|
|
id 'io.github.goooler.shadow' version '8.1.8'
|
|
|
|
id 'org.ajoberstar.grgit' version '5.2.2'
|
|
|
|
id 'org.ajoberstar.grgit' version '5.2.2'
|
|
|
|
id 'maven-publish'
|
|
|
|
id 'maven-publish'
|
|
|
|
id 'java'
|
|
|
|
id 'java'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
group 'net.william278'
|
|
|
|
group 'org.inksnow.husk'
|
|
|
|
version "$ext.library_version${versionMetadata()}"
|
|
|
|
version "$ext.library_version${versionMetadata()}"
|
|
|
|
description "$ext.library_description"
|
|
|
|
description "$ext.library_description"
|
|
|
|
defaultTasks 'licenseFormat', 'build'
|
|
|
|
defaultTasks 'licenseFormat', 'build'
|
|
|
@ -21,30 +21,12 @@ ext {
|
|
|
|
|
|
|
|
|
|
|
|
publishing {
|
|
|
|
publishing {
|
|
|
|
repositories {
|
|
|
|
repositories {
|
|
|
|
if (System.getenv("RELEASES_MAVEN_USERNAME") != null) {
|
|
|
|
maven {
|
|
|
|
maven {
|
|
|
|
name = 'husk-release'
|
|
|
|
name = "william278-releases"
|
|
|
|
url = findProperty("repository.huskrelease.url")
|
|
|
|
url = "https://repo.william278.net/releases"
|
|
|
|
credentials {
|
|
|
|
credentials {
|
|
|
|
username = findProperty("repository.huskrelease.username")
|
|
|
|
username = System.getenv("RELEASES_MAVEN_USERNAME")
|
|
|
|
password = findProperty("repository.huskrelease.password")
|
|
|
|
password = System.getenv("RELEASES_MAVEN_PASSWORD")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
authentication {
|
|
|
|
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (System.getenv("SNAPSHOTS_MAVEN_USERNAME") != null) {
|
|
|
|
|
|
|
|
maven {
|
|
|
|
|
|
|
|
name = "william278-snapshots"
|
|
|
|
|
|
|
|
url = "https://repo.william278.net/snapshots"
|
|
|
|
|
|
|
|
credentials {
|
|
|
|
|
|
|
|
username = System.getenv("SNAPSHOTS_MAVEN_USERNAME")
|
|
|
|
|
|
|
|
password = System.getenv("SNAPSHOTS_MAVEN_PASSWORD")
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
authentication {
|
|
|
|
|
|
|
|
basic(BasicAuthentication)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -56,7 +38,7 @@ allprojects {
|
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'java'
|
|
|
|
|
|
|
|
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileJava.options.encoding = 'UTF-8'
|
|
|
|
compileJava.options.release.set 17
|
|
|
|
compileJava.options.release.set 8
|
|
|
|
javadoc.options.encoding = 'UTF-8'
|
|
|
|
javadoc.options.encoding = 'UTF-8'
|
|
|
|
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
|
|
|
|
|
|
|
|
|
|
|
@ -134,7 +116,7 @@ subprojects {
|
|
|
|
if (['common'].contains(project.name)) {
|
|
|
|
if (['common'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaCommon(MavenPublication) {
|
|
|
|
mavenJavaCommon(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-common'
|
|
|
|
artifactId = 'uniform-common'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -147,7 +129,7 @@ subprojects {
|
|
|
|
if (['paper'].contains(project.name)) {
|
|
|
|
if (['paper'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaPaper(MavenPublication) {
|
|
|
|
mavenJavaPaper(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-paper'
|
|
|
|
artifactId = 'uniform-paper'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -160,7 +142,7 @@ subprojects {
|
|
|
|
if (['bukkit'].contains(project.name)) {
|
|
|
|
if (['bukkit'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaBukkit(MavenPublication) {
|
|
|
|
mavenJavaBukkit(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-bukkit'
|
|
|
|
artifactId = 'uniform-bukkit'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -173,7 +155,7 @@ subprojects {
|
|
|
|
if (['velocity'].contains(project.name)) {
|
|
|
|
if (['velocity'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaVelocity(MavenPublication) {
|
|
|
|
mavenJavaVelocity(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-velocity'
|
|
|
|
artifactId = 'uniform-velocity'
|
|
|
|
version = "$rootProject.version"
|
|
|
|
version = "$rootProject.version"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
@ -186,7 +168,7 @@ subprojects {
|
|
|
|
if (['fabric-1.20.1'].contains(project.name)) {
|
|
|
|
if (['fabric-1.20.1'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaFabric1_20_1(MavenPublication) {
|
|
|
|
mavenJavaFabric1_20_1(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
version = "${rootProject.version}+1.20.1"
|
|
|
|
version = "${rootProject.version}+1.20.1"
|
|
|
|
artifact remapJar
|
|
|
|
artifact remapJar
|
|
|
@ -199,7 +181,7 @@ subprojects {
|
|
|
|
if (['fabric-1.21'].contains(project.name)) {
|
|
|
|
if (['fabric-1.21'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenJavaFabric1_21(MavenPublication) {
|
|
|
|
mavenJavaFabric1_21(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
artifactId = 'uniform-fabric'
|
|
|
|
version = "${rootProject.version}+1.21"
|
|
|
|
version = "${rootProject.version}+1.21"
|
|
|
|
artifact remapJar
|
|
|
|
artifact remapJar
|
|
|
@ -212,7 +194,7 @@ subprojects {
|
|
|
|
if (['sponge-11'].contains(project.name)) {
|
|
|
|
if (['sponge-11'].contains(project.name)) {
|
|
|
|
publications {
|
|
|
|
publications {
|
|
|
|
mavenSponge11(MavenPublication) {
|
|
|
|
mavenSponge11(MavenPublication) {
|
|
|
|
groupId = 'net.william278.uniform'
|
|
|
|
groupId = 'org.inksnow.husk.uniform'
|
|
|
|
artifactId = 'uniform-sponge'
|
|
|
|
artifactId = 'uniform-sponge'
|
|
|
|
version = "${rootProject.version}+11"
|
|
|
|
version = "${rootProject.version}+11"
|
|
|
|
artifact shadowJar
|
|
|
|
artifact shadowJar
|
|
|
|