-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
74 lines (64 loc) · 1.69 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
66
67
68
69
70
71
72
73
74
plugins {
id 'java-library'
id 'maven-publish'
}
def full_version = "${minecraft_version}-${project_version}"
group = 'be.raft.crafty'
version = full_version
repositories {
mavenCentral()
maven {
name = "spigotmc-repo"
url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots/"
}
maven {
name = "sonatype"
url = "https://oss.sonatype.org/content/groups/public/"
}
}
dependencies {
compileOnly "org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT"
}
tasks.register('sourceJar', Jar) {
group 'build'
from sourceSets.main.allSource
archiveClassifier.set('sources')
archiveBaseName = 'CraftyBuilder'
}
build {
dependsOn sourceJar
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId = 'be.raft.crafty'
artifactId = 'crafty-builder'
version = full_version
from components.java
pom {
name = 'CraftyBuilder'
description = 'Utility Library to make building Spigot Components more simpler'
licenses {
license {
name = 'MIT'
url = 'https://github.com/AtlasWorldMC/ContentWork/blob/main/LICENSE'
}
}
}
}
}
repositories {
maven {
name 'AtlasWorld-Release'
url 'https://repository.atlasworld.fr/repository/maven-release/'
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
}
java {
withSourcesJar()
withJavadocJar()
}