/* */ plugins { // Apply the java plugin. id 'java' id("io.freefair.aspectj") version "9.2.0" } java { toolchain { languageVersion = JavaLanguageVersion.of(25) } } group = 'edu.tictactoe' version = '1.0' repositories { // Use Maven Central for resolving dependencies. mavenCentral() } dependencies { implementation("org.slf4j:slf4j-api:2.0.17") implementation("ch.qos.logback:logback-classic:1.5.26") implementation("org.aspectj:aspectjrt:1.9.25") } jar { manifest { attributes 'Automatic-Module-Name':'edu.tictactoe', 'Main-Class': 'edu.tictactoe.App', 'Class-Path': 'edu.tictactoe org.aspectj.runtime' } duplicatesStrategy = DuplicatesStrategy.EXCLUDE from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } } tasks.named('jar') { manifest { attributes( 'Automatic-Module-Name':'edu.tictactoe', 'Implementation-Title': 'edu.tictactoe', 'Implementation-Version': 1.0, 'Main-Class': 'edu.tictactoe.App', 'Class-Path': 'edu.tictactoe org.aspectj.runtime' ) } }