Files

52 lines
1.1 KiB
Groovy
Raw Permalink Normal View History

2026-02-06 13:14:36 -05:00
/*
*/
plugins {
// Apply the java plugin.
2026-02-06 22:04:17 -05:00
id 'application'
2026-02-06 13:14:36 -05:00
}
java {
toolchain {
2026-04-25 12:42:49 -04:00
languageVersion = JavaLanguageVersion.of(26)
2026-02-06 13:14:36 -05:00
}
}
group = 'edu.tictactoe'
version = '1.0'
2026-02-06 22:04:17 -05:00
application {
mainClass = 'edu.tictactoe.App'
}
2026-02-06 13:14:36 -05:00
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
2026-02-06 15:07:46 -05:00
implementation("org.slf4j:slf4j-api:2.0.17")
implementation("ch.qos.logback:logback-classic:1.5.26")
2026-02-06 13:14:36 -05:00
}
2026-02-06 18:59:10 -05:00
jar {
manifest {
attributes 'Automatic-Module-Name':'edu.tictactoe',
'Main-Class': 'edu.tictactoe.App',
2026-04-25 12:42:49 -04:00
'Class-Path': 'edu.tictactoe.App'
2026-02-06 18:59:10 -05:00
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
2026-02-06 13:14:36 -05:00
tasks.named('jar') {
manifest {
2026-02-06 15:07:46 -05:00
attributes(
'Automatic-Module-Name':'edu.tictactoe',
'Implementation-Title': 'edu.tictactoe',
'Implementation-Version': 1.0,
'Main-Class': 'edu.tictactoe.App',
2026-04-25 12:42:49 -04:00
'Class-Path': 'edu.tictactoe.App' )
2026-02-06 13:14:36 -05:00
}
}