-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
66 lines (52 loc) · 1.6 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
54
55
56
57
58
59
60
61
62
63
64
65
plugins {
id 'java'
id 'maven-publish'
}
group = 'io.github.hedgehog1029'
version = '1.5.0'
description = "A plugin framework for Spigot/Bukkit."
sourceCompatibility = 1.8
targetCompatibility = 1.8
java {
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'frame'
from components.java
pom {
name = 'Frame'
description = project.description
licenses {
license {
name = 'MIT License'
url = 'https://spdx.org/licenses/MIT.html'
}
}
developers {
developer {
id = 'obw'
name = 'offbeatwitch'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/hedgehog1029/Frame.git'
url = 'https://github.com/hedgehog1029/Frame'
}
}
}
}
repositories {
maven {
def releasesUrl = 'https://maven.offbeatwit.ch/repository/releases/'
def snapshotsUrl = 'https://maven.offbeatwit.ch/repository/snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsUrl : releasesUrl
credentials(PasswordCredentials) {
username = project.property('archiva.user')
password = project.property('archiva.password')
}
}
}
}