-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
94 lines (83 loc) · 2.16 KB
/
build.gradle
File metadata and controls
94 lines (83 loc) · 2.16 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.6'
classpath 'com.netflix.nebula:gradle-extra-configurations-plugin:1.12.+'
classpath "org.xtext:xtext-gradle-plugin:1.0.15"
}
}
allprojects {
group = "org.xbuf"
def description = 'bridges between assimp and xbuf'
project.version = "git describe --always --dirty".execute().text.trim()
println("version : '${project.version}' (${bintray_api_key.length() > 0} && ${project.version ==~ /(\d+)\.(\d+)\.(\d+)/})")
}
subprojects {
apply plugin: 'java' // assets are managed like java resource + code
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'
repositories {
mavenLocal()
jcenter()
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
def pomConfig = {
licenses {
license {
name "Public domain (CC0-1.0)"
url "http://creativecommons.org/publicdomain/zero/1.0/"
distribution "repo"
}
}
developers {
developer {
id "davidB"
name "David Bernard"
}
}
}
publishing {
publications {
mavenStuff(MavenPublication) {
from components.java
artifact sourcesJar
pom.withXml {
def root = asNode()
if (description) root.appendNode('description', project.description)
root.children().last() + pomConfig
}
}
}
}
bintray {
user = bintray_user
key = bintray_api_key
publications = ['mavenStuff'] //When uploading Maven-based publication files
//dryRun = true //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'maven'
name = project.name
desc = project.description
websiteUrl = "https://github.com/xbuf/${rootProject.name}"
issueTrackerUrl = "https://github.com/xbuf/${rootProject.name}/issues"
vcsUrl = "https://github.com/xbuf/${rootProject.name}.git"
licenses = ['CC0-1.0']
labels = ['xbuf']
publicDownloadNumbers = true
version {
name = project.version
vcsTag = project.version
}
}
}
bintrayUpload.onlyIf {
(bintray_api_key.length() > 0) &&
(project.version ==~ /(\d+)\.(\d+)\.(\d+)/)
}
}