Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
d287b5536f
|
|||
|
e5c147833c
|
|||
|
e78e34f29c
|
|||
|
914dbc1692
|
|||
|
eef3950610
|
|||
|
2b055062a3
|
|||
|
f923f47765
|
|||
|
86a1c3ab9c
|
11
.gitlab-ci.yml
Normal file
11
.gitlab-ci.yml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
image: gradle:7.2.0-jdk8
|
||||||
|
variables:
|
||||||
|
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||||
|
before_script:
|
||||||
|
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||||
|
|
||||||
|
build:
|
||||||
|
stage: build
|
||||||
|
only:
|
||||||
|
- master
|
||||||
|
script: gradle --console=plain publish
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
# GHAST TOOLS
|
# GHAST TOOLS
|
||||||
|
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
Набор вспомогательных инструментов для Bukkit API.
|
Набор вспомогательных инструментов для Bukkit API.
|
||||||
@@ -673,7 +673,7 @@ repositories {
|
|||||||
```
|
```
|
||||||
|
|
||||||
```groovy
|
```groovy
|
||||||
implementation group: 'ghast', name: 'ghast-tools', version: '1.12.1'
|
implementation group: 'ghast', name: 'ghast-tools', version: '1.13'
|
||||||
```
|
```
|
||||||
|
|
||||||
### Maven
|
### Maven
|
||||||
@@ -692,7 +692,7 @@ implementation group: 'ghast', name: 'ghast-tools', version: '1.12.1'
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>ghast</groupId>
|
<groupId>ghast</groupId>
|
||||||
<artifactId>ghast-tools</artifactId>
|
<artifactId>ghast-tools</artifactId>
|
||||||
<version>1.12.1</version>
|
<version>1.13</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
```
|
```
|
||||||
40
build.gradle
40
build.gradle
@@ -1,11 +1,14 @@
|
|||||||
|
//file:noinspection GroovyAssignabilityCheck
|
||||||
plugins {
|
plugins {
|
||||||
id 'java'
|
id 'java'
|
||||||
|
id 'maven-publish'
|
||||||
id 'jacoco'
|
id 'jacoco'
|
||||||
}
|
}
|
||||||
|
|
||||||
project.group = 'ghast'
|
project.group = 'ghast'
|
||||||
project.version = '1.12.2-SNAPSHOT'
|
|
||||||
jar.archiveBaseName.set(project.name)
|
jar.archiveBaseName.set(project.name)
|
||||||
|
project.version = '1.13'
|
||||||
|
def gitlab_projectid = 23328133
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
sourceCompatibility = targetCompatibility = JavaVersion.VERSION_1_8
|
||||||
@@ -13,13 +16,11 @@ compileJava {
|
|||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
|
||||||
mavenCentral()
|
mavenCentral()
|
||||||
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public' }
|
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public' }
|
||||||
maven { url 'https://dmx-mc-project.gitlab.io/maven-repository/' }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
def lombokVersion = '1.18.20'
|
def lombokVersion = '1.18.22'
|
||||||
def junitVersion = '5.8.1'
|
def junitVersion = '5.8.1'
|
||||||
def bukkitVersion = '1.12.2-R0.1-SNAPSHOT'
|
def bukkitVersion = '1.12.2-R0.1-SNAPSHOT'
|
||||||
|
|
||||||
@@ -34,12 +35,12 @@ dependencies {
|
|||||||
exclude(module: 'snakeyaml')
|
exclude(module: 'snakeyaml')
|
||||||
}
|
}
|
||||||
implementation('org.apache.commons:commons-text:1.9')
|
implementation('org.apache.commons:commons-text:1.9')
|
||||||
implementation('org.jooq:joor-java-8:0.9.13')
|
implementation('org.jooq:joor-java-8:0.9.14')
|
||||||
|
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
|
testImplementation("org.junit.jupiter:junit-jupiter-api:$junitVersion")
|
||||||
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
|
testImplementation("org.junit.jupiter:junit-jupiter-engine:$junitVersion")
|
||||||
testImplementation('org.mockito:mockito-core:3.12.4')
|
testImplementation('org.mockito:mockito-core:4.0.0')
|
||||||
testImplementation('org.jooq:joor-java-8:0.9.13')
|
testImplementation('org.jooq:joor-java-8:0.9.14')
|
||||||
testImplementation("org.bukkit:bukkit:$bukkitVersion") {
|
testImplementation("org.bukkit:bukkit:$bukkitVersion") {
|
||||||
exclude(module: 'gson')
|
exclude(module: 'gson')
|
||||||
exclude(module: 'json-simple')
|
exclude(module: 'json-simple')
|
||||||
@@ -60,3 +61,28 @@ jacoco {
|
|||||||
jacocoTestReport {
|
jacocoTestReport {
|
||||||
dependsOn test
|
dependsOn test
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
mavenBinary(MavenPublication) {
|
||||||
|
groupId = project.group
|
||||||
|
artifactId = project.name
|
||||||
|
version = project.version
|
||||||
|
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
url "https://gitlab.com/api/v4/projects/${gitlab_projectid}/packages/maven"
|
||||||
|
credentials(HttpHeaderCredentials) {
|
||||||
|
name = 'Job-Token'
|
||||||
|
value = System.getenv('CI_JOB_TOKEN')
|
||||||
|
}
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user