remove aspectj.
This commit is contained in:
@@ -14,4 +14,15 @@
|
||||
<natures>
|
||||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
||||
</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>
|
||||
|
||||
@@ -12,8 +12,7 @@
|
||||
<attribute name="gradle_used_by_scope" value="main,test"/>
|
||||
</attributes>
|
||||
</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.ajdt.core.ASPECTJRT_CONTAINER"/>
|
||||
<classpathentry kind="output" path="bin/default"/>
|
||||
</classpath>
|
||||
|
||||
+12
-2
@@ -6,7 +6,7 @@
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.ajdt.core.ajbuilder</name>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
@@ -17,8 +17,18 @@
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.ajdt.ui.ajnature</nature>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
<nature>org.eclipse.buildship.core.gradleprojectnature</nature>
|
||||
</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>
|
||||
|
||||
@@ -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
|
||||
@@ -4,12 +4,11 @@
|
||||
plugins {
|
||||
// Apply the java plugin.
|
||||
id 'application'
|
||||
id("io.freefair.aspectj") version "9.2.0"
|
||||
}
|
||||
|
||||
java {
|
||||
toolchain {
|
||||
languageVersion = JavaLanguageVersion.of(25)
|
||||
languageVersion = JavaLanguageVersion.of(26)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,14 +27,13 @@ repositories {
|
||||
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'
|
||||
'Class-Path': 'edu.tictactoe.App'
|
||||
}
|
||||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
||||
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
|
||||
@@ -48,6 +46,6 @@ tasks.named('jar') {
|
||||
'Implementation-Title': 'edu.tictactoe',
|
||||
'Implementation-Version': 1.0,
|
||||
'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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user