remove aspectj.

This commit is contained in:
2026-04-25 12:42:49 -04:00
parent 8401c609b5
commit 6c254b9309
6 changed files with 31 additions and 28 deletions
+11
View File
@@ -14,4 +14,15 @@
<natures> <natures>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1777130461248</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription> </projectDescription>
+1 -2
View File
@@ -12,8 +12,7 @@
<attribute name="gradle_used_by_scope" value="main,test"/> <attribute name="gradle_used_by_scope" value="main,test"/>
</attributes> </attributes>
</classpathentry> </classpathentry>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-25/"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-26/"/>
<classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/> <classpathentry kind="con" path="org.eclipse.buildship.core.gradleclasspathcontainer"/>
<classpathentry kind="con" path="org.eclipse.ajdt.core.ASPECTJRT_CONTAINER"/>
<classpathentry kind="output" path="bin/default"/> <classpathentry kind="output" path="bin/default"/>
</classpath> </classpath>
+12 -2
View File
@@ -6,7 +6,7 @@
</projects> </projects>
<buildSpec> <buildSpec>
<buildCommand> <buildCommand>
<name>org.eclipse.ajdt.core.ajbuilder</name> <name>org.eclipse.jdt.core.javabuilder</name>
<arguments> <arguments>
</arguments> </arguments>
</buildCommand> </buildCommand>
@@ -17,8 +17,18 @@
</buildCommand> </buildCommand>
</buildSpec> </buildSpec>
<natures> <natures>
<nature>org.eclipse.ajdt.ui.ajnature</nature>
<nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.eclipse.buildship.core.gradleprojectnature</nature> <nature>org.eclipse.buildship.core.gradleprojectnature</nature>
</natures> </natures>
<filteredResources>
<filter>
<id>1777130461247</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription> </projectDescription>
@@ -0,0 +1,4 @@
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.targetPlatform=26
org.eclipse.jdt.core.compiler.compliance=26
org.eclipse.jdt.core.compiler.source=26
+3 -5
View File
@@ -4,12 +4,11 @@
plugins { plugins {
// Apply the java plugin. // Apply the java plugin.
id 'application' id 'application'
id("io.freefair.aspectj") version "9.2.0"
} }
java { java {
toolchain { toolchain {
languageVersion = JavaLanguageVersion.of(25) languageVersion = JavaLanguageVersion.of(26)
} }
} }
@@ -28,14 +27,13 @@ repositories {
dependencies { dependencies {
implementation("org.slf4j:slf4j-api:2.0.17") implementation("org.slf4j:slf4j-api:2.0.17")
implementation("ch.qos.logback:logback-classic:1.5.26") implementation("ch.qos.logback:logback-classic:1.5.26")
implementation("org.aspectj:aspectjrt:1.9.25")
} }
jar { jar {
manifest { manifest {
attributes 'Automatic-Module-Name':'edu.tictactoe', attributes 'Automatic-Module-Name':'edu.tictactoe',
'Main-Class': 'edu.tictactoe.App', 'Main-Class': 'edu.tictactoe.App',
'Class-Path': 'edu.tictactoe org.aspectj.runtime' 'Class-Path': 'edu.tictactoe.App'
} }
duplicatesStrategy = DuplicatesStrategy.EXCLUDE duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } } from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
@@ -48,6 +46,6 @@ tasks.named('jar') {
'Implementation-Title': 'edu.tictactoe', 'Implementation-Title': 'edu.tictactoe',
'Implementation-Version': 1.0, 'Implementation-Version': 1.0,
'Main-Class': 'edu.tictactoe.App', 'Main-Class': 'edu.tictactoe.App',
'Class-Path': 'edu.tictactoe org.aspectj.runtime' ) 'Class-Path': 'edu.tictactoe.App' )
} }
} }
@@ -1,19 +0,0 @@
package edu.tictactoe;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public aspect Referee { // call the plays.
pointcut PlayEventUpdate(): execution(public * edu.tictactoe.Board.*(..));
ResultEnum around(BoardButton[] buttons): execution(public * edu.tictactoe.Board.checkGamePlay(BoardButton[])) && args(buttons) && if(buttons!=null)
{
ResultEnum oval = proceed(buttons);
Logger logger = LoggerFactory.getLogger(Referee.class);
logger.info(String.format("Checking Board play: %s. ", oval));
return oval;
}
}