add aspectj
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
*/
|
||||
|
||||
plugins {
|
||||
// Apply the java plugin.
|
||||
id 'java'
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(25)
|
||||
}
|
||||
}
|
||||
|
||||
group = 'edu.tictactoe'
|
||||
version = '1.0'
|
||||
|
||||
repositories {
|
||||
// Use Maven Central for resolving dependencies.
|
||||
mavenCentral()
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation("org.aspectj:aspectjrt:1.9.25")
|
||||
}
|
||||
|
||||
jar {
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
}
|
||||
|
||||
tasks.named('jar') {
|
||||
manifest {
|
||||
attributes('Implementation-Title': 'edu.tictactoe',
|
||||
'Implementation-Version': 1.0,
|
||||
'Main-Class': 'edu.tictactoe.App',
|
||||
'Class-Path': 'edu.tictactoe org.aspectj.runtime' )
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user