0

21 Commits

Author SHA1 Message Date
2b055062a3 GitLab CI: publish by job 2021-10-21 22:24:23 +03:00
f923f47765 GitLab CI: manual publish 2021-10-21 18:33:16 +03:00
86a1c3ab9c GitLab CI 2021-10-10 14:26:44 +03:00
4ba35bd89d update version 2021-02-04 11:55:41 +03:00
368eab1227 Merge branch 'develop' 2021-02-04 11:54:44 +03:00
c48b75e6ed update version 2021-02-04 11:37:10 +03:00
8e51f25c82 Merge branch 'develop' 2021-02-04 11:35:33 +03:00
0b74f104f2 update version 2021-01-08 17:07:15 +03:00
6e54a16067 Merge branch 'develop' 2021-01-08 17:05:46 +03:00
d34e418dcc update version 2021-01-05 19:04:28 +03:00
bcca590741 Merge branch 'develop' 2021-01-05 19:03:32 +03:00
2fc1bf36c1 update version 2021-01-03 00:24:06 +03:00
eb5396b891 Merge branch 'develop' 2021-01-03 00:23:40 +03:00
e12d005a25 update version 2021-01-02 14:39:35 +03:00
6e50fc278e Merge branch 'develop' 2021-01-02 14:39:18 +03:00
c8866af418 update version 2021-01-02 02:52:42 +03:00
359dbba09a Merge branch 'develop' 2021-01-02 02:52:19 +03:00
e4b1b40104 update version 2021-01-02 01:46:21 +03:00
73f044ab8b Merge branch 'develop' 2021-01-02 01:45:58 +03:00
32b868df22 update version 2021-01-01 22:08:31 +03:00
3a66dffa10 Merge branch 'develop' 2021-01-01 22:08:17 +03:00
5 changed files with 47 additions and 12 deletions

11
.gitlab-ci.yml Normal file
View 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

View File

@@ -1,6 +1,6 @@
# GHAST TOOLS
![version: 1.9](https://img.shields.io/badge/version-1.9-0a0.svg?style=flat)
![version: 1.12.1](https://img.shields.io/badge/version-1.12.1-0a0.svg?style=flat)
![bukkit-api: 1.12](https://img.shields.io/badge/bukkit--api-1.12-d50.svg?style=flat)
Набор вспомогательных инструментов для 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>
```

View File

@@ -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)
}
}
}
}

View File

@@ -1,3 +1,5 @@
projectGroup=ghast
projectName=ghast-tools
projectVersion=1.4
projectVersion=1.12.1
gitlab.projectid=23328133

View File

@@ -1,2 +1 @@
rootProject.name = projectName
rootProject.name=projectName