Skip to content

Commit

Permalink
convert some gradle to kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
daviddenton committed Feb 18, 2024
1 parent bdd2a4c commit fbc8369
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 20 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -68,19 +68,19 @@ subprojects {
}
}

tasks.register('sourcesJar', Jar) {
tasks.register("sourcesJar", Jar) {
dependsOn classes
archiveClassifier = "sources"
from sourceSets.main.allSource
}

tasks.register('javadocJar', Jar) {
tasks.register("javadocJar", Jar) {
dependsOn javadoc
archiveClassifier = "javadoc"
from javadoc.destinationDir
}

tasks.register('testJar', Jar) {
tasks.register("testJar", Jar) {
archiveClassifier = "test"
from sourceSets.test.output
}
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ description = "Fork Handles Bill Of Materials (BOM)"
dependencies {
constraints {
rootProject.subprojects
.findAll { it.name != project.name }
.sort { "$it.name" }
.each { api it }
.filter { it.name != project.name }
.sortedBy { it.name }
.forEach { api(it) }
}
}
6 changes: 3 additions & 3 deletions result4k/core/build.gradle
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
plugins {
id "me.champeau.jmh"
id("me.champeau.jmh")
}

description = "A friendly Kotlin Result type"

dependencies {
testApi Kotlin.test
testApi(Kotlin.test)
}

compileJmhKotlin.kotlinOptions.jvmTarget = "1.8"

test {
include "dev/forkhandles/**"
include("dev/forkhandles/**")
scanForTestClasses true
reports {
junitXml.required = true
Expand Down
11 changes: 0 additions & 11 deletions values4k/build.gradle

This file was deleted.

13 changes: 13 additions & 0 deletions values4k/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile

description = "ForkHandles Value-types library"

dependencies {
implementation(project(":result4k"))
}

tasks.named<KotlinCompile>("compileTestKotlin") {
kotlinOptions {
freeCompilerArgs += listOf("-Xinline-classes")
}
}

0 comments on commit fbc8369

Please sign in to comment.