mirror of
https://github.com/jlengrand/swacli.git
synced 2026-03-10 08:41:24 +00:00
62 lines
1.3 KiB
Groovy
62 lines
1.3 KiB
Groovy
plugins {
|
|
id 'java'
|
|
id 'org.jetbrains.kotlin.jvm' version '1.9.24'
|
|
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.24'
|
|
}
|
|
|
|
apply plugin: 'kotlin-kapt' // required
|
|
|
|
|
|
group 'nl.lengrand'
|
|
version '1.0-SNAPSHOT'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib"
|
|
|
|
implementation 'info.picocli:picocli:4.7.6'
|
|
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.3'
|
|
|
|
implementation 'com.github.kittinunf.fuel:fuel:2.3.1'
|
|
implementation 'com.github.kittinunf.fuel:fuel-kotlinx-serialization:2.3.1'
|
|
|
|
testImplementation "org.junit.jupiter:junit-jupiter-api:5.10.2"
|
|
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.10.2"
|
|
|
|
kapt 'info.picocli:picocli-codegen:4.7.6'
|
|
}
|
|
|
|
test {
|
|
useJUnitPlatform()
|
|
}
|
|
|
|
compileJava{
|
|
|
|
}
|
|
|
|
compileKotlin {
|
|
kotlinOptions.jvmTarget = "21"
|
|
}
|
|
compileTestKotlin {
|
|
kotlinOptions.jvmTarget = "21"
|
|
}
|
|
|
|
kapt {
|
|
arguments {
|
|
arg("project", "${project.group}/${project.name}")
|
|
}
|
|
}
|
|
|
|
tasks.register('customFatJar', Jar) {
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
manifest {
|
|
attributes 'Main-Class': 'nl.lengrand.swacli.SwaCLIPaginate'
|
|
}
|
|
archiveBaseName = 'all-in-one-jar'
|
|
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
|
with jar
|
|
} |