|
@@ -1,5 +1,3 @@
|
|
-import net.fabricmc.loom.task.RemapJar
|
|
|
|
-
|
|
|
|
plugins {
|
|
plugins {
|
|
id 'fabric-loom' version '0.2.2-SNAPSHOT'
|
|
id 'fabric-loom' version '0.2.2-SNAPSHOT'
|
|
id 'maven-publish'
|
|
id 'maven-publish'
|
|
@@ -60,31 +58,31 @@ dependencies {
|
|
}
|
|
}
|
|
|
|
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
task sourcesJar(type: Jar, dependsOn: classes) {
|
|
- classifier = "sources"
|
|
|
|
- from sourceSets.main.allSource
|
|
|
|
|
|
+ classifier = "sources"
|
|
|
|
+ from sourceSets.main.allSource
|
|
}
|
|
}
|
|
|
|
|
|
publishing {
|
|
publishing {
|
|
- publications {
|
|
|
|
- mavenJava(MavenPublication) {
|
|
|
|
- artifact(jar) {
|
|
|
|
- builtBy remapJar
|
|
|
|
- }
|
|
|
|
- artifact(sourcesJar) {
|
|
|
|
- builtBy remapSourcesJar
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ publications {
|
|
|
|
+ mavenJava(MavenPublication) {
|
|
|
|
+ artifact(jar) {
|
|
|
|
+ builtBy remapJar
|
|
|
|
+ }
|
|
|
|
+ artifact(sourcesJar) {
|
|
|
|
+ builtBy remapSourcesJar
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
|
|
- repositories {
|
|
|
|
-// if (project.hasProperty('danielshe_pass')) {
|
|
|
|
-// maven {
|
|
|
|
-// url = "http://deploy.modmuss50.me/"
|
|
|
|
-// credentials {
|
|
|
|
-// username = "danielshe"
|
|
|
|
-// password = project.getProperty('danielshe_pass')
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
-// }
|
|
|
|
- }
|
|
|
|
|
|
+ repositories {
|
|
|
|
+ if (project.hasProperty('danielshe_pass')) {
|
|
|
|
+ maven {
|
|
|
|
+ url = "http://deploy.modmuss50.me/"
|
|
|
|
+ credentials {
|
|
|
|
+ username = "danielshe"
|
|
|
|
+ password = project.getProperty('danielshe_pass')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|