Fix compilation errors

This commit is contained in:
Telesphoreo 2022-05-05 21:04:31 -05:00
parent 48df906a43
commit 928a60487a
2 changed files with 25 additions and 4 deletions

View file

@ -18,15 +18,18 @@ Add the following dependency to your POM (or equivalent for other dependency man
</dependency>
```
If you use gradle, you can use the following code :
If you use Gradle, you can use the following code:
```gradle
repositories {
mavenCentral()
maven {
url = uri("https://nexus.telesphoreo.me/repository/totalfreedom/")
}
}
dependencies {
...
implementation 'dev.plex:toml4j:0.7.3'
implementation("dev.plex:toml4j:0.7.3")
}
```

View file

@ -1,5 +1,6 @@
plugins {
java
`maven-publish`
}
group = "dev.plex"
@ -11,6 +12,23 @@ repositories {
dependencies {
implementation("com.google.code.gson:gson:2.9.0")
implementation("org.projectlombok:lombok:1.18.22")
annotationProcessor("org.projectlombok:lombok:1.18.22")
implementation("org.projectlombok:lombok:1.18.24")
implementation("org.jetbrains:annotations:23.0.0")
annotationProcessor("org.projectlombok:lombok:1.18.24")
}
publishing {
publications {
repositories {
maven {
val releasesRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-releases")
val snapshotsRepoUrl = uri("https://nexus.telesphoreo.me/repository/plex-snapshots")
url = uri(if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl)
credentials {
username = System.getenv("plexUser")
password = System.getenv("plexPassword")
}
}
}
}
}