Compare commits
21 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
2b055062a3
|
|||
|
f923f47765
|
|||
|
86a1c3ab9c
|
|||
|
4ba35bd89d
|
|||
|
368eab1227
|
|||
|
c48b75e6ed
|
|||
|
8e51f25c82
|
|||
|
0b74f104f2
|
|||
|
6e54a16067
|
|||
|
d34e418dcc
|
|||
|
bcca590741
|
|||
|
2fc1bf36c1
|
|||
|
eb5396b891
|
|||
|
e12d005a25
|
|||
|
6e50fc278e
|
|||
|
c8866af418
|
|||
|
359dbba09a
|
|||
|
e4b1b40104
|
|||
|
73f044ab8b
|
|||
|
32b868df22
|
|||
|
3a66dffa10
|
11
.gitlab-ci.yml
Normal file
11
.gitlab-ci.yml
Normal file
@@ -0,0 +1,11 @@
|
||||
image: gradle:6.7.0-jdk8
|
||||
variables:
|
||||
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
|
||||
before_script:
|
||||
- export GRADLE_USER_HOME=`pwd`/.gradle
|
||||
|
||||
build:
|
||||
stage: build
|
||||
only:
|
||||
- dev/ci
|
||||
script: gradle --console=plain publish
|
||||
@@ -1,6 +1,6 @@
|
||||
# GHAST TOOLS
|
||||
|
||||

|
||||

|
||||

|
||||
|
||||
Набор вспомогательных инструментов для Bukkit API.
|
||||
@@ -673,7 +673,7 @@ repositories {
|
||||
```
|
||||
|
||||
```groovy
|
||||
implementation group: 'ghast', name: 'ghast-tools', version: '1.9'
|
||||
implementation group: 'ghast', name: 'ghast-tools', version: '1.12.1'
|
||||
```
|
||||
|
||||
### Maven
|
||||
@@ -692,7 +692,7 @@ implementation group: 'ghast', name: 'ghast-tools', version: '1.9'
|
||||
<dependency>
|
||||
<groupId>ghast</groupId>
|
||||
<artifactId>ghast-tools</artifactId>
|
||||
<version>1.9</version>
|
||||
<version>1.12.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
```
|
||||
33
build.gradle
33
build.gradle
@@ -1,10 +1,7 @@
|
||||
//file:noinspection GroovyAssignabilityCheck
|
||||
plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
def publishScript = file(rootProject.getProjectDir().getPath() + '/publish.gradle')
|
||||
if (publishScript.exists()) {
|
||||
apply from: publishScript.path
|
||||
id 'maven-publish'
|
||||
}
|
||||
|
||||
project.group = projectGroup
|
||||
@@ -15,6 +12,7 @@ repositories {
|
||||
mavenCentral()
|
||||
maven { url 'https://hub.spigotmc.org/nexus/content/groups/public' }
|
||||
maven { url 'https://dmx-mc-project.gitlab.io/maven-repository/' }
|
||||
maven { url "https://gitlab.com/api/v4/projects/${project.property('gitlab.projectid')}/packages/maven" }
|
||||
}
|
||||
|
||||
ext {
|
||||
@@ -77,3 +75,28 @@ dependencies {
|
||||
test {
|
||||
useJUnitPlatform()
|
||||
}
|
||||
|
||||
publishing {
|
||||
publications {
|
||||
mavenBinary(MavenPublication) {
|
||||
groupId = project.property('projectGroup')
|
||||
artifactId = project.property('projectName')
|
||||
version = project.property('projectVersion')
|
||||
|
||||
from components.java
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
url "https://gitlab.com/api/v4/projects/${project.property('gitlab.projectid')}/packages/maven"
|
||||
credentials(HttpHeaderCredentials) {
|
||||
name = 'Job-Token'
|
||||
value = System.getenv('CI_JOB_TOKEN')
|
||||
}
|
||||
authentication {
|
||||
header(HttpHeaderAuthentication)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
projectGroup=ghast
|
||||
projectName=ghast-tools
|
||||
projectVersion=1.4
|
||||
projectVersion=1.12.1
|
||||
|
||||
gitlab.projectid=23328133
|
||||
@@ -1,2 +1 @@
|
||||
rootProject.name=projectName
|
||||
|
||||
|
||||
Reference in New Issue
Block a user