diff --git a/README.MD b/README.MD
index 23ced22..33c2e07 100644
--- a/README.MD
+++ b/README.MD
@@ -1,4 +1,4 @@
-# HamsterCurrency
+# [HamsterCurrency](https://github.com/MiniDay/HamsterCurrency-Parent)
[](https://jitpack.io/#cn.hamster3/HamsterCurrency)
仓鼠的多货币经济插件
@@ -21,8 +21,8 @@
```xml
- jitpack.io
- https://jitpack.io
+ airgame-repo
+ https://maven.airgame.net/repository/maven-repo/
```
@@ -33,7 +33,7 @@
cn.hamster3
HamsterCurrency
- 2.0.7-SNAPSHOT
+ 2.0.9-SNAPSHOT
```
@@ -44,7 +44,7 @@
```groovy
allprojects {
repositories {
- maven { url 'https://jitpack.io' }
+ maven { url 'https://maven.airgame.net/repository/maven-repo/' }
}
}
```
@@ -53,7 +53,7 @@ allprojects {
```groovy
dependencies {
- implementation 'cn.hamster3:HamsterCurrency:1.3.7-SNAPSHOT'
+ implementation 'cn.hamster3:HamsterCurrency:2.0.9-SNAPSHOT'
}
```
diff --git a/currency-plugin/build.gradle b/currency-plugin/build.gradle
index 9ad8252..af86a4b 100644
--- a/currency-plugin/build.gradle
+++ b/currency-plugin/build.gradle
@@ -1,5 +1,6 @@
plugins {
id 'java'
+ id 'maven-publish'
}
group 'cn.hamster3'
@@ -34,9 +35,54 @@ processResources {
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
+ withJavadocJar()
+ withSourcesJar()
}
jar {
archivesBaseName = "HamsterCurrency"
destinationDir(rootProject.buildDir)
}
+
+tasks.withType(JavaCompile) {
+ options.encoding = 'UTF-8'
+ options.compilerArgs << "-Xlint:unchecked"
+}
+
+javadoc {
+ options.quiet()
+ options.encoding = 'UTF-8'
+ options.addStringOption('Xdoclint:none', '-quiet')
+ options.links = [
+ "https://javadoc.io/doc/org.jetbrains/annotations/21.0.1",
+ 'https://javadoc.io/doc/com.google.code.gson/gson/2.8.0',
+ 'https://ci.dmulloy2.net/job/ProtocolLib/javadoc',
+ 'http://milkbowl.github.io/VaultAPI',
+ 'https://bukkit.windit.net/javadoc'
+ ]
+}
+
+publishing {
+ publications {
+ mavenJava(MavenPublication) {
+ artifactId = "HamsterCurrency"
+ artifact jar
+ artifact sourcesJar
+ artifact javadocJar
+ }
+ }
+
+ repositories {
+ maven {
+ def releasesRepoUrl = 'https://maven.airgame.net/repository/maven-releases/'
+ def snapshotsRepoUrl = 'https://maven.airgame.net/repository/maven-snapshots/'
+
+ url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
+
+ credentials {
+ username maven_username
+ password maven_password
+ }
+ }
+ }
+}
\ No newline at end of file