aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-16 19:22:18 +0800
committershedaniel <daniel@shedaniel.me>2019-12-16 19:22:18 +0800
commit0c4c871e42ba4bc68b7d810b5d6ad2159c6908e9 (patch)
tree15ff0b475c2481ec93922dc096b8ffa26d8fe9b0
parent6e02a7bd1f0dd18de125651dff9e941ada0da3bc (diff)
downloadRoughlyEnoughItems-0c4c871e42ba4bc68b7d810b5d6ad2159c6908e9.tar.gz
RoughlyEnoughItems-0c4c871e42ba4bc68b7d810b5d6ad2159c6908e9.tar.bz2
RoughlyEnoughItems-0c4c871e42ba4bc68b7d810b5d6ad2159c6908e9.zip
Push non-jij jar instead
-rwxr-xr-xbuild.gradle35
-rw-r--r--gradle.properties2
2 files changed, 33 insertions, 4 deletions
diff --git a/build.gradle b/build.gradle
index 2ad681d1d..f4cbab86c 100755
--- a/build.gradle
+++ b/build.gradle
@@ -4,6 +4,7 @@ plugins {
id 'fabric-loom' version '0.2.6-SNAPSHOT'
id 'maven-publish'
id 'net.minecrell.licenser' version '0.4.1'
+// id 'com.matthewprenger.cursegradle' version '1.4.0'
}
sourceCompatibility = targetCompatibility = 1.8
@@ -90,16 +91,44 @@ task remapMavenJar(type: net.fabricmc.loom.task.RemapJarTask, dependsOn: jar) {
// classifier = "maven"
afterEvaluate {
input = file("${project.buildDir}/libs/${archivesBaseName}-${version}-dev.jar")
- archiveName = "${archivesBaseName}-${version}-maven.jar"
+ archiveName = "${archivesBaseName}-${version}.jar"
addNestedDependencies = false
}
}
+//curseforge {
+// if (project.hasProperty('cf_pass')) {
+// apiKey = project.getProperty('cf_pass')
+// project {
+// id = '319057'
+// releaseType = 'release'
+// addGameVersion '1.15'
+// addGameVersion '1.15-Snapshot'
+// addGameVersion 'Java 8'
+// relations {
+// requiredDependency 'fabric-api'
+// embeddedLibrary 'cloth'
+// embeddedLibrary 'cloth-config'
+// }
+// mainArtifact(file("${project.buildDir}/libs/${project.archivesBaseName}-${project.version}.jar")) {
+// displayName = "[Fabric ${project.minecraft_version}] v$project.version"
+// }
+// afterEvaluate {
+// uploadTask.dependsOn("remapJar")
+// }
+// }
+// }
+// options {
+// forgeGradleIntegration = false
+// javaVersionAutoDetect = false
+// }
+//}
+
publishing {
publications {
mavenJava(MavenPublication) {
- artifact(file("${project.buildDir}/libs/$archivesBaseName-${version}.jar")) {
- builtBy remapJar
+ artifact(file("${project.buildDir}/libs/$archivesBaseName-${version}-maven.jar")) {
+ builtBy remapMavenJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
diff --git a/gradle.properties b/gradle.properties
index 688abcc75..9b5530635 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,4 +1,4 @@
-mod_version=3.2.22
+mod_version=3.2.23
minecraft_version=1.15
yarn_version=1.15+build.1
fabricloader_version=0.7.2+build.174