1/*
2 * This file was generated by the Gradle 'init' task.
3 *
4 * This generated file contains a sample Kotlin application project to get you started.
5 * For more details on building Java & JVM projects, please refer to https://docs.gradle.org/8.14.3/userguide/building_java_projects.html in the Gradle documentation.
6 */
7
8plugins {
9 // Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
10 alias(libs.plugins.kotlin.jvm)
11
12 // Apply the application plugin to add support for building a CLI application in Java.
13 application
14}
15
16repositories {
17 // Use Maven Central for resolving dependencies.
18 mavenCentral()
19}
20
21dependencies {
22 // Use the Kotlin JUnit 5 integration.
23 testImplementation("org.jetbrains.kotlin:kotlin-test-junit5")
24
25 // Use the JUnit 5 integration.
26 testImplementation(libs.junit.jupiter.engine)
27
28 testRuntimeOnly("org.junit.platform:junit-platform-launcher")
29
30 // This dependency is used by the application.
31 implementation(libs.guava)
32}
33
34// Apply a specific Java toolchain to ease working on different environments.
35java {
36 toolchain {
37 languageVersion = JavaLanguageVersion.of(21)
38 }
39}
40
41application {
42 // Define the main class for the application.
43 mainClass = "org.amadaluzia.RosettaCollatzKt"
44}
45
46tasks.named<Test>("test") {
47 // Use JUnit Platform for unit tests.
48 useJUnitPlatform()
49}