Skip to content

Commit 8865201

Browse files
authored
Use proper publishing methods. Fix #82. Pin loom. (#84)
1 parent f9f9405 commit 8865201

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

build.gradle.kts

+7-5
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ allprojects {
6868
}
6969

7070
detekt {
71-
config = files("${rootProject.projectDir}/codeformat/detekt.yml")
71+
config.setFrom(files("${rootProject.projectDir}/codeformat/detekt.yml"))
7272
}
7373

7474
license {
@@ -186,16 +186,18 @@ allprojects {
186186
publishing {
187187
publications {
188188
create<MavenPublication>("Maven") {
189+
// Copy data from the kotlin component, notably dependencies
190+
from(components.getByName("kotlin"))
191+
189192
artifactId = project.name
190193
version = projectVersion
191194

195+
// Publish Sources Jar
192196
artifact(tasks.remapSourcesJar.get().archiveFile) {
193197
builtBy(tasks.remapSourcesJar)
194198
this.classifier = "sources"
195199
}
196-
artifact(tasks.remapJar.get().archiveFile) {
197-
builtBy(tasks.remapJar)
198-
}
200+
// Publish Javadoc
199201
artifact(tasks.getByName<Jar>("dokkaJavadocJar").archiveFile) {
200202
builtBy(tasks.getByName("dokkaJavadocJar"))
201203
this.classifier = "javadoc"
@@ -317,7 +319,7 @@ modrinth {
317319
file.set(tasks.remapJar.get().archiveFile)
318320
additionalFiles.add(project(":core").tasks.remapJar.get().archiveFile)
319321

320-
dependencies {
322+
dependencies {
321323
required.project("qsl")
322324
embedded.project("fabric-language-kotlin")
323325
}

gradle/libs.versions.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dokka = { id = "org.jetbrains.dokka", version.ref = "dokka" }
3333
git_hooks = { id = "com.github.jakemarsden.git-hooks", version = "0.0.2" }
3434
kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
3535
licenser = { id = "org.quiltmc.gradle.licenser", version = "2.0.1" }
36-
quilt_loom = { id = "org.quiltmc.loom", version = "1.+" }
36+
quilt_loom = { id = "org.quiltmc.loom", version = "1.4.1" }
3737
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "serialization_plugin" }
3838
binary_compatibility = { id = "org.jetbrains.kotlinx.binary-compatibility-validator", version.ref = "binary_compat_plugin" }
3939
minotaur = { id = "com.modrinth.minotaur", version = "2.8.2" }

0 commit comments

Comments
 (0)