Reworked config builder.
Added parameters' documentation.
This commit is contained in:
parent
f0b7902cab
commit
cfa49e7e3e
7 changed files with 109 additions and 36 deletions
|
@ -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) {
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue