Skip to content

Commit a07147b

Browse files
committed
Add repository to readme
1 parent 030e9d8 commit a07147b

File tree

3 files changed

+18
-7
lines changed

3 files changed

+18
-7
lines changed

README.md

+16-5
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,23 @@ To install the api jar into your local maven repo run
7878

7979
The correct artifact can then be included using the following dependency definition:
8080
```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>
8686
```
8787

8888
Don't forget to actually include the artifact in your final jar, using the `maven-shade-plugin` or an equivalent alternative!
8989

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+
```

api/build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dependencies {
22
compileOnly project(":agent")
3-
compile files("${System.properties['java.home']}/../lib/tools.jar")
3+
compileOnly files("${System.properties['java.home']}/../lib/tools.jar")
44
}
55

66
jar {

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
rootProject.name = 'runtimetransformer'
22

3-
if (hasProperty("build-example")) {
3+
if (hasProperty("build-example") || System.getProperty("build-example") != null) {
44
include 'example-plugin'
55
project(":example-plugin").projectDir = "$rootDir/example-plugin" as File
66
}

0 commit comments

Comments
 (0)