-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
41 lines (35 loc) · 920 Bytes
/
build.gradle
File metadata and controls
41 lines (35 loc) · 920 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
plugins {
id 'java'
id 'maven-publish'
}
group = 'fr.pickaria'
version = '1.2-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
compileOnly "net.kyori:adventure-api:4.17.0"
compileOnly "net.kyori:adventure-text-minimessage:4.17.0"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
publishing {
repositories {
maven {
name = 'pickariaRepository'
url = uri(version.toString().endsWith('-SNAPSHOT') ? 'https://maven.pickaria.fr/snapshots' : 'https://maven.pickaria.fr/releases')
credentials {
username = System.getenv('MAVEN_USERNAME')
password = System.getenv('MAVEN_PASSWORD')
}
}
}
publications {
maven(MavenPublication) {
artifactId = project.name
from components.java
}
}
}