1.9.4
This commit is contained in:
+29
-5
@@ -5,20 +5,44 @@ image: gradle:6.8.2-jdk8
|
|||||||
cache:
|
cache:
|
||||||
paths:
|
paths:
|
||||||
- .gradle
|
- .gradle
|
||||||
|
- ~/.gradle
|
||||||
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
stage: build
|
||||||
script:
|
script:
|
||||||
- gradle shadowJar
|
- rm -rf build
|
||||||
|
- gradle shadowJar
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- build/libs
|
- build/libs
|
||||||
|
|
||||||
pages:
|
pages:
|
||||||
|
stage: build
|
||||||
image: gradle:6.8.3-jdk15
|
image: gradle:6.8.3-jdk15
|
||||||
|
only:
|
||||||
|
- master
|
||||||
script:
|
script:
|
||||||
- gradle javadoc
|
- gradle javadoc
|
||||||
- mv build/docs/javadoc public
|
- mv build/docs/javadoc public
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- public
|
- public
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
script:
|
||||||
|
- gradle test
|
||||||
|
|
||||||
|
upload to updater:
|
||||||
|
stage: deploy
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
dependencies:
|
||||||
|
- build
|
||||||
|
script:
|
||||||
|
- cd build/libs
|
||||||
|
- files=(*)
|
||||||
|
- curl -i -F "submit=true" -F "secret=$UPLOAD_SECRET" -F "file=@${files[0]}" https://ajg0702.us/pl/updater/upload.php
|
||||||
|
|||||||
+5
-7
@@ -5,7 +5,7 @@ plugins {
|
|||||||
}
|
}
|
||||||
|
|
||||||
group = "us.ajg0702"
|
group = "us.ajg0702"
|
||||||
version = "1.9.3"
|
version = "1.9.4"
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
@@ -30,6 +30,7 @@ dependencies {
|
|||||||
implementation("org.bstats:bstats-bungeecord:2.2.1")
|
implementation("org.bstats:bstats-bungeecord:2.2.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
tasks.withType<ProcessResources> {
|
tasks.withType<ProcessResources> {
|
||||||
include("**/*.yml")
|
include("**/*.yml")
|
||||||
filter<org.apache.tools.ant.filters.ReplaceTokens>(
|
filter<org.apache.tools.ant.filters.ReplaceTokens>(
|
||||||
@@ -47,12 +48,9 @@ tasks.shadowJar {
|
|||||||
|
|
||||||
publishing {
|
publishing {
|
||||||
publications {
|
publications {
|
||||||
create<MavenPublication>("maven") {
|
create<MavenPublication>("mavenJava") {
|
||||||
groupId = project.group.toString();
|
//artifact(tasks["sourcesJar"])
|
||||||
artifactId = project.name
|
artifact(tasks["jar"])
|
||||||
version = project.version.toString()
|
|
||||||
|
|
||||||
from(components["java"])
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user