Skip to content

Commit fe80a29

Browse files
committed
Version 1.1.2+1.14.3
1 parent 6fe4b82 commit fe80a29

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

build.gradle.kts

+24
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import net.fabricmc.loom.task.RemapJarTask
12
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
23

34
plugins {
45
java
56
kotlin("jvm") version "1.3.30"
67
idea
78
id("fabric-loom") version "0.2.4-SNAPSHOT"
9+
`maven-publish`
810
}
911

1012
base {
@@ -92,3 +94,25 @@ dependencies {
9294
// Other libraries
9395
compileOnly("org.apiguardian:apiguardian-api:1.0.0")
9496
}
97+
98+
val remapJar: RemapJarTask by tasks.getting {}
99+
100+
publishing {
101+
publications.create<MavenPublication>("maven") {
102+
// Copied from the Cotton buildscript
103+
104+
artifact("${project.buildDir.absolutePath}/libs/${base.archivesBaseName}-${project.version}.jar") { //release jar - file location not provided anywhere in loom
105+
classifier = null
106+
builtBy(remapJar)
107+
}
108+
109+
artifact ("${project.buildDir.absolutePath}/libs/${base.archivesBaseName}-${project.version}-dev.jar") { //release jar - file location not provided anywhere in loom
110+
classifier = "dev"
111+
builtBy(remapJar)
112+
}
113+
114+
/*artifact(sourcesJar) {
115+
builtBy remapSourcesJar
116+
}*/
117+
}
118+
}

gradle.properties

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ kotlin.code.style = official
22

33
# Adorn
44
mod-version = 1.1.2
5-
local-build = true
6-
# TODO: ^
5+
local-build = false
76

87
# Minecraft
98
minecraft = 1.14.3
@@ -17,4 +16,4 @@ fabric-kotlin = 1.3.30-SNAPSHOT
1716
# Mod dependencies
1817
polyester = 0.3.1+1.14.3
1918
towelette = 1.7.2
20-
cotton = 0.8.3+1.14.3-local.4
19+
cotton = 0.8.3-pre+1.14.3

0 commit comments

Comments
 (0)