-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
68 lines (61 loc) · 2.07 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
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '4.0.2'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.4"
}
group 'es.minsait.tm.license'
version '0.1'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
compile group: 'org.javassist', name: 'javassist', version: '3.24.1-GA'
compile 'info.picocli:picocli:3.9.5'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
// http://imperceptiblethoughts.com/shadow/
shadowJar {
classifier = ''
manifest {
attributes 'Main-Class': "es.minsait.tm.license.gen.Main"
}
}
publishing {
publications {
shadow(MavenPublication) {
project.shadow.component(it)
pom {
name = 'license-generator'
description = 'Build tool that protects your .class files with license permissions'
url = 'https://github.com/throwable/license-generator'
licenses {
license {
name = 'MIT'
url = 'https://opensource.org/licenses/MIT'
}
}
scm {
connection = 'scm:git:git://github.com/throwable/license-generator.git'
developerConnection = 'scm:git:git://github.com/throwable/license-generator.git'
url = 'https://github.com/throwable/license-generator/'
}
}
}
}
}
// https://github.com/bintray/gradle-bintray-plugin
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayKey') ? project.property('bintrayKey') : System.getenv('BINTRAY_KEY')
publications = ['shadow']
pkg {
repo = 'pub'
name = 'license-generator'
desc = 'Build tool that protects your .class files with license permissions'
licenses = ['MIT']
vcsUrl = 'https://github.com/throwable/license-generator.git'
labels = ['license', 'java', 'tool']
}
}