-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite injection of CTCGraphicsEnvironment #16
Changes from all commits
ec82d70
6132e1a
e8b05b6
85c7054
8ef7cad
c3f0f70
8d09a9d
b759f92
39c52ce
db6dadf
0c7c036
f50727a
f933523
2e3d176
85f6969
31363ea
3bce65b
1080aa4
150e3b0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,3 +17,12 @@ target/ | |
|
||
# OS X | ||
.DS_Store | ||
|
||
# jenv | ||
|
||
|
||
# jenv | ||
.java-version | ||
|
||
# log files | ||
*.log |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,6 +45,17 @@ | |
<artifactId>jide-oss</artifactId> | ||
<version>3.6.18</version> | ||
</dependency> | ||
<!-- https://mvnrepository.com/artifact/net.bytebuddy/byte-buddy --> | ||
<dependency> | ||
<groupId>net.bytebuddy</groupId> | ||
<artifactId>byte-buddy</artifactId> | ||
<version>1.14.11</version> | ||
</dependency> | ||
<dependency> | ||
<groupId>net.bytebuddy</groupId> | ||
<artifactId>byte-buddy-agent</artifactId> | ||
<version>1.14.11</version> | ||
</dependency> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm wondering if these should have a There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am less familiar with Spring Boot and boms. I generally go for the simplest thing that works and makes sense to me. |
||
</dependencies> | ||
|
||
<build> | ||
|
@@ -54,8 +65,8 @@ | |
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>17</source> | ||
<target>17</target> | ||
<source>${cacio.java.version}</source> | ||
<target>${cacio.java.version}</target> | ||
<compilerArgs> | ||
<arg>-XDignore.symbol.file=true</arg> | ||
<arg>--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED</arg> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package com.github.caciocavallosilano.cacio.ctc.junit; | ||
|
||
import com.github.caciocavallosilano.cacio.ctc.CTCGraphicsEnvironment; | ||
import net.bytebuddy.implementation.bind.annotation.*; | ||
|
||
import java.awt.*; | ||
|
||
|
||
public class CTCInterceptor { | ||
@RuntimeType | ||
public static GraphicsEnvironment intercept() { | ||
return CTCGraphicsEnvironment.getInstance(); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,10 @@ | |
<module>cacio-tta</module> | ||
</modules> | ||
|
||
<properties> | ||
<cacio.java.version>17</cacio.java.version> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. disregard my other comment, I see it now |
||
</properties> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
|
@@ -112,8 +116,8 @@ | |
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.8.1</version> | ||
<configuration> | ||
<source>17</source> | ||
<target>17</target> | ||
<source>${cacio.java.version}</source> | ||
<target>${cacio.java.version}</target> | ||
<compilerArgs> | ||
<arg>-XDignore.symbol.file=true</arg> | ||
</compilerArgs> | ||
|
@@ -130,6 +134,7 @@ | |
<java.awt.headless>false</java.awt.headless> | ||
</systemPropertyVariables> | ||
<argLine> | ||
-XX:+EnableDynamicAgentLoading | ||
--add-exports=java.desktop/java.awt=ALL-UNNAMED | ||
--add-exports=java.desktop/java.awt.peer=ALL-UNNAMED | ||
--add-exports=java.desktop/sun.awt.image=ALL-UNNAMED | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense to define this once, I'm a bit of a Maven newbie, doesn't this need to be added to a properties section somewhere?