diff --git a/README.md b/README.md index ccb94ac..b150706 100644 --- a/README.md +++ b/README.md @@ -18,15 +18,18 @@ Add the following dependency to your POM (or equivalent for other dependency man ``` -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") } ``` diff --git a/build.gradle.kts b/build.gradle.kts index dd2efe7..a9cbf43 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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") + } + } + } + } } \ No newline at end of file