File tree 3 files changed +18
-7
lines changed
3 files changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,23 @@ To install the api jar into your local maven repo run
78
78
79
79
The correct artifact can then be included using the following dependency definition:
80
80
``` xml
81
- <dependency >
82
- <groupId >me.yamakaja.runtimetransformer</groupId >
83
- <artifactId >api</artifactId >
84
- <version >1.0-SNAPSHOT</version >
85
- </dependency >
81
+ <dependency >
82
+ <groupId >me.yamakaja.runtimetransformer</groupId >
83
+ <artifactId >api</artifactId >
84
+ <version >1.0-SNAPSHOT</version >
85
+ </dependency >
86
86
```
87
87
88
88
Don't forget to actually include the artifact in your final jar, using the ` maven-shade-plugin ` or an equivalent alternative!
89
89
90
+ ## Alternative: Maven repository
91
+
92
+ @sgdc3 has offered to host the artifacts on their build server, you can access them by adding the following to your
93
+ ` <repositories> ` (This way you wont have to compile it locally):
94
+
95
+ ``` xml
96
+ <repository >
97
+ <id >codemc</id >
98
+ <url >https://repo.codemc.org/repository/maven-public/</url >
99
+ </repository >
100
+ ```
Original file line number Diff line number Diff line change 1
1
dependencies {
2
2
compileOnly project(" :agent" )
3
- compile files(" ${ System.properties['java.home']} /../lib/tools.jar" )
3
+ compileOnly files(" ${ System.properties['java.home']} /../lib/tools.jar" )
4
4
}
5
5
6
6
jar {
Original file line number Diff line number Diff line change 1
1
rootProject. name = ' runtimetransformer'
2
2
3
- if (hasProperty(" build-example" )) {
3
+ if (hasProperty(" build-example" ) || System . getProperty( " build-example " ) != null ) {
4
4
include ' example-plugin'
5
5
project(" :example-plugin" ). projectDir = " $rootDir /example-plugin" as File
6
6
}
You can’t perform that action at this time.
0 commit comments