add aspectj

This commit is contained in:
2026-02-06 13:14:36 -05:00
parent 20c38a9468
commit cff9ca6463
12 changed files with 40 additions and 67 deletions
+39
View File
@@ -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' )
}
}

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 4.3 KiB

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

-4
View File
@@ -2,9 +2,5 @@
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format
[versions]
commons-math3 = "3.6.1"
guava = "33.4.6-jre"
[libraries]
commons-math3 = { module = "org.apache.commons:commons-math3", version.ref = "commons-math3" }
guava = { module = "com.google.guava:guava", version.ref = "guava" }
-62
View File
@@ -1,62 +0,0 @@
/*
*/
plugins {
// Apply the java-library plugin for API and implementation separation.
id 'java'
id("io.freefair.aspectj") version "9.2.0" // Check the latest version on the plugin website
id 'application'
id("org.owasp.dependencycheck") version "12.2.0"
}
java {
toolchain {
languageVersion = JavaLanguageVersion.of(25)
}
}
group = 'edu.tictactoe'
version = '1.0'
application {
mainClass = 'edu.tictactoe.App'
}
sourceSets {
main {
java {
srcDirs = ['src/main/java']
}
resources {
srcDirs = ['src/main/resources']
}
}
}
repositories {
// Use Maven Central for resolving dependencies.
mavenCentral()
}
dependencies {
implementation("org.aspectj:aspectjrt:1.9.25")
}
jar {
manifest {
attributes 'Main-Class': application.mainClass
}
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}
tasks.named('jar') {
manifest {
attributes('Implementation-Title': application.mainClass,
'Implementation-Version': 1.0,
'Main-Class': application.mainClass,
'Class-Path': 'edu.tictactoe .' )
}
}
+1 -1
View File
@@ -12,4 +12,4 @@ plugins {
}
rootProject.name = 'tictactoe'
include('lib')
include('edu.tictactoe')