forked from Aizistral-Studios/Grimfixes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublish.gradle
70 lines (61 loc) · 1.79 KB
/
publish.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
buildscript {
repositories {
mavenCentral()
jcenter()
}
}
apply plugin: "maven"
apply plugin: 'maven-publish'
publishing {
publications {
origin(MavenPublication) {
from components.java
artifact devJar
artifact sourcesJar
pom {
artifactId = project.name
}
}
all {
pom {
name = project.name
groupId = project.group
version = project.version
description = 'A set of configurable lightweight patches that rectify some long-standing issues in common mods.'
url = 'https://github.com/CrucibleMC/Fixworks'
issueManagement {
system = 'github'
url = 'https://github.com/CrucibleMC/Fixworks/issues'
}
developers {
developer {
id = 'CrucibleMC'
name = 'CrucibleMC Team'
roles = ['developer']
}
developer {
id = 'Aizistral'
name = 'Aizistral'
roles = ['developer']
}
}
withXml {
Node pomNode = asNode()
pomNode.dependencies.'*'.findAll() {
it.artifactId.text() == 'forgeSrc' || it.artifactId.text() == 'Fixworks-Core'
}.each() {
it.parent().remove(it)
}
}
}
}
}
repositories {
maven {
def releasesRepoUrl = "$buildDir/repos/releases"
def snapshotsRepoUrl = "$buildDir/repos/snapshots"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
bintrayUpload.dependsOn assemble