-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
53 lines (46 loc) · 1.13 KB
/
build.gradle
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
42
43
44
45
46
47
48
49
50
51
52
53
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
maven {
url = uri('https://hub.spigotmc.org/nexus/content/repositories/snapshots/')
}
maven {
url = uri('https://oss.sonatype.org/content/groups/public/')
}
maven {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'org.jetbrains:annotations:22.0.0'
compileOnly 'org.spigotmc:spigot-api:1.17.1-R0.1-SNAPSHOT'
}
group = 'ch.gamepowerx'
version = '1.0-SNAPSHOT'
description = 'Notes'
java.sourceCompatibility = JavaVersion.VERSION_17
publishing {
publications {
//noinspection GroovyAssignabilityCheck
maven(MavenPublication) {
//noinspection GroovyAssignabilityCheck
from(components.java)
}
}
repositories {
maven {
name = "GitHubPackages"
url = "https://maven.pkg.github.com/CraftingDragon007/Notes"
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
}
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}