Reworked config builder.

Added parameters' documentation.
This commit is contained in:
Erik C. Thauvin 2024-05-25 21:14:15 -07:00
parent f0b7902cab
commit cfa49e7e3e
Signed by: erik
GPG key ID: 776702A6A2DA330E
7 changed files with 109 additions and 36 deletions

View file

@ -24,7 +24,7 @@ public class ExampleBuild extends BaseProject {
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, SONATYPE_SNAPSHOTS_LEGACY);
scope(compile)
.include(dependency("net.thauvin.erik:isgd-shorten:1.0.1"));
.include(dependency("net.thauvin.erik:isgd-shorten:1.0.2-SNAPSHOT"));
}
public static void main(String[] args) {

View file

@ -13,7 +13,7 @@ repositories {
}
dependencies {
implementation("net.thauvin.erik:isgd-shorten:1.0.1")
implementation("net.thauvin.erik:isgd-shorten:1.0.2-SNAPSHOT")
}
java {
@ -25,11 +25,11 @@ application {
mainClass.set("com.example.IsgdExampleKt")
}
tasks {
withType<KotlinCompile>().configureEach {
kotlinOptions.jvmTarget = java.targetCompatibility.toString()
}
kotlin {
compilerOptions.jvmTarget.set(org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_11)
}
tasks {
register("runJava", JavaExec::class) {
group = "application"
mainClass.set("com.example.IsgdSample")

View file

@ -7,4 +7,4 @@
* in the user manual at https://docs.gradle.org/6.2/userguide/multi_project_builds.html
*/
rootProject.name = "isgd-examples"
rootProject.name = "isgd-shorten-examples-gradle"