forked from PatchworkMC/patchwork-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatchwork-api.submodule-noprocess.gradle
More file actions
67 lines (58 loc) · 1.79 KB
/
patchwork-api.submodule-noprocess.gradle
File metadata and controls
67 lines (58 loc) · 1.79 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
plugins {
id 'patchwork-api.module-conventions'
}
task remapMavenJar(type: Copy, dependsOn: remapJar) {
afterEvaluate {
from("${project.buildDir}/libs/$archivesBaseName-${version}.jar")
into("${project.buildDir}/libs/")
rename {String fn -> "$archivesBaseName-${version}-maven.jar"}
}
}
publishing {
publications {
create("${archivesBaseName}_mavenJava", MavenPublication) {
afterEvaluate {
artifact(file("${project.buildDir}/libs/$archivesBaseName-${version}-maven.jar")) {
builtBy remapMavenJar
}
artifact(sourcesJar) {
builtBy remapSourcesJar
}
}
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.getProperty('bintrayUser') : System.getenv('bintray_user')
key = project.hasProperty('bintrayKey') ? project.getProperty('bintrayKey') : System.getenv('bintray_key')
publish = true
override = true
publications = ["${archivesBaseName}_mavenJava"]
pkg {
repo = project.bintrayRepo
name = archivesBaseName
user = bintray.user
userOrg = project.repoOwner
licenses = [project.codeLicense]
desc = project.description
websiteUrl = "https://github.com/${project.repoOwner}/${project.repoName}"
issueTrackerUrl = "https://github.com/${project.repoOwner}/${project.repoName}/issues"
vcsUrl = "https://github.com/${project.repoOwner}/${project.repoName}.git"
publicDownloadNumbers = true
githubRepo = "${project.repoOwner}/${project.repoName}"
version {
name = project.version
released = new Date()
}
}
}
rootProject.bintrayUpload.dependsOn(bintrayUpload)
javadoc.enabled = false
rootProject.licenseFormatAll.dependsOn(licenseFormat)
rootProject.remapJar.dependsOn(remapJar)
rootProject.dependencies {
afterEvaluate {
compile project(path: ":${project.name}", configuration: "dev")
include project(":${project.name}:")
}
}