Skip to content

Commit 7993b3f

Browse files
fix: switched Java setup from Groovy to Kotlin (#5)
* feat: set up Java project with Gradle * fix: switched from Groovy to Kotlin
1 parent 375fc80 commit 7993b3f

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

app/build.gradle.kts

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

settings.gradle.kts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* This file was generated by the Gradle 'init' task.
3+
*
4+
* The settings file is used to specify which projects to include in your build.
5+
* For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.8/userguide/multi_project_builds.html in the Gradle documentation.
6+
*/
7+
8+
plugins {
9+
// Apply the foojay-resolver plugin to allow automatic download of JDKs
10+
id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
11+
}
12+
13+
rootProject.name = "25q1-team1"
14+
include("app")

0 commit comments

Comments
 (0)