This repository was archived by the owner on Oct 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
131 lines (109 loc) · 2.84 KB
/
Copy pathbuild.gradle
File metadata and controls
131 lines (109 loc) · 2.84 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
import org.apache.tools.ant.filters.ReplaceTokens
plugins {
id 'java'
id 'eclipse'
id 'maven-publish'
id 'signing'
}
sourceSets {
main {
java {
srcDir 'src/main/java'
}
}
}
version = '0.1.0'
group = 'dev.array21'
allprojects {
repositories {
mavenCentral()
maven { url 'https://hub.spigotmc.org/nexus/content/repositories/snapshots/' }
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
sourceCompatibility = 1.16
targetCompatibility = 1.16
processResources {
from(sourceSets.main.resources.srcDirs) {
filter ReplaceTokens, tokens: [version: version]
}
}
}
dependencies {
compileOnly 'org.spigotmc:spigot-api:1.17-R0.1-SNAPSHOT'
}
task ghActions(type: Jar) {
description 'GitHub Actions task. Not used for regular development'
version = ''
archiveClassifier = ''
archiveBaseName = 'output'
from sourceSets.main.output
destinationDirectory = file("$rootDir/actions")
}
task testJar(type: Jar) {
description 'Build a test Jar'
archiveClassifier = 'DEV'
from sourceSets.main.output
destinationDirectory = file("$rootDir/server/plugins")
}
javadoc.options.addStringOption('Xdoclint:none', '-quiet')
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
classifier = 'sources'
from sourceSets.main.allSource
}
publishing {
repositories {
maven {
name = "ossrh"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = findProperty('ossrhUsername')
password = findProperty('ossrhPassword')
}
}
}
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
pom {
name = 'DutchyCore'
artifactId = 'dutchycore'
packaging = 'jar'
description = 'DutchyCore Plugin Library'
url = 'https://github.com/DutchyPlugins/DutchyCore'
scm {
connection = 'scm:git:git://github.com/DutchyPlugins/DutchyCore.git'
developerConnection = 'scm:git:ssh://github.com/DutchyPlugins/DutchyCore.git'
url = 'https://github.com/DutchyPlugins/DutchyCore'
}
licenses {
license {
name = 'GPL-v23'
url = 'https://github.com/DutchyPlugins/DutchyCore/blob/master/LICENSE'
}
}
developers {
developer {
id = 'tobiasdebruijn'
name = 'Tobias de Bruijn'
email = 't.debruijn@array21.dev'
}
}
}
}
}
}
signing {
if(!System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
sign publishing.publications.mavenJava
}
}
processResources {
duplicatesStrategy = DuplicatesStrategy.INCLUDE
}