chore: maven publishing to Gitea repository
This commit is contained in:
parent
37b4def35c
commit
bc9ca3113c
@ -2,6 +2,8 @@ plugins {
|
|||||||
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
id 'com.github.johnrengelman.shadow' version '7.0.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
version = MSB3_VERSION
|
||||||
|
|
||||||
tasks {
|
tasks {
|
||||||
shadowJar {
|
shadowJar {
|
||||||
manifest {
|
manifest {
|
||||||
@ -48,3 +50,32 @@ dependencies {
|
|||||||
|
|
||||||
implementation 'org.apache.commons:commons-text:1.10.0'
|
implementation 'org.apache.commons:commons-text:1.10.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
maven(MavenPublication) {
|
||||||
|
groupId = 'ru.dragonestia.msb3'
|
||||||
|
artifactId = 'msb-api'
|
||||||
|
version = MSB3_VERSION
|
||||||
|
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "Gitea"
|
||||||
|
url = uri(MSB3_MAVEN_REPOSITORY)
|
||||||
|
allowInsecureProtocol = true
|
||||||
|
|
||||||
|
credentials(HttpHeaderCredentials) {
|
||||||
|
name = "Authorization"
|
||||||
|
value = "token ${dragonestiaGiteaToken}"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -4,7 +4,6 @@ subprojects {
|
|||||||
apply plugin: 'maven-publish'
|
apply plugin: 'maven-publish'
|
||||||
|
|
||||||
group = 'ru.dragonestia.msb3'
|
group = 'ru.dragonestia.msb3'
|
||||||
version = '3.0'
|
|
||||||
|
|
||||||
java {
|
java {
|
||||||
toolchain {
|
toolchain {
|
||||||
|
|||||||
@ -33,3 +33,7 @@ dependencyManagement {
|
|||||||
mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
|
mavenBom "com.vaadin:vaadin-bom:${vaadinVersion}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sourcesJar.dependsOn({
|
||||||
|
vaadinPrepareFrontend
|
||||||
|
})
|
||||||
|
|||||||
2
gradle.properties
Normal file
2
gradle.properties
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
MSB3_MAVEN_REPOSITORY=http://git.dragonestia.ru/api/packages/MSB/maven
|
||||||
|
MSB3_VERSION=3.0.0
|
||||||
@ -1,3 +1,9 @@
|
|||||||
|
ext {
|
||||||
|
ext.set("VERSION", '1.0.0')
|
||||||
|
}
|
||||||
|
|
||||||
|
version = ext.get("VERSION")
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api 'net.kyori:adventure-api:4.17.0'
|
api 'net.kyori:adventure-api:4.17.0'
|
||||||
api 'net.kyori:adventure-text-minimessage:4.17.0'
|
api 'net.kyori:adventure-text-minimessage:4.17.0'
|
||||||
@ -5,3 +11,32 @@ dependencies {
|
|||||||
api 'team.unnamed:creative-serializer-minecraft:1.7.3'
|
api 'team.unnamed:creative-serializer-minecraft:1.7.3'
|
||||||
api 'team.unnamed:creative-server:1.7.3'
|
api 'team.unnamed:creative-server:1.7.3'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
publishing {
|
||||||
|
publications {
|
||||||
|
maven(MavenPublication) {
|
||||||
|
groupId = 'ru.dragonestia.msb3'
|
||||||
|
artifactId = 'resource-compiler'
|
||||||
|
version = project.ext.get("VERSION")
|
||||||
|
|
||||||
|
from components.java
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
maven {
|
||||||
|
name = "Gitea"
|
||||||
|
url = uri(MSB3_MAVEN_REPOSITORY)
|
||||||
|
allowInsecureProtocol = true
|
||||||
|
|
||||||
|
credentials(HttpHeaderCredentials) {
|
||||||
|
name = "Authorization"
|
||||||
|
value = "token ${dragonestiaGiteaToken}"
|
||||||
|
}
|
||||||
|
|
||||||
|
authentication {
|
||||||
|
header(HttpHeaderAuthentication)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user