-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
80 lines (65 loc) · 1.7 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
75
76
77
78
79
80
plugins {
id "com.jfrog.bintray" version "1.8.5"
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'maven'
apply plugin: 'maven-publish'
group = 'de.wellnerbou'
version = '3.3'
description = """git-changelog"""
mainClassName = "de.wellnerbou.gitchangelog.app.GitChangelog"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
jcenter()
mavenCentral()
}
// user and key configuration for bintray deployment:
// ./gradlew bintrayUpload -PpublishUser=<USER> -PpublishKey=<KEY>
if (!project.hasProperty("publishUser")) {
ext.publishUser = ""
}
if (!project.hasProperty("publishKey")) {
ext.publishKey = ""
}
run {
if (project.hasProperty('args')) {
args project.args.split('\\s+')
}
}
task sourceJar(type: Jar) {
from sourceSets.main.allJava
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'de.wellnerbou'
artifactId 'git-changelog'
artifact sourceJar {
classifier "sources"
}
}
}
}
dependencies {
compile group: 'org.eclipse.jgit', name: 'org.eclipse.jgit', version: '5.7.0.202003110725-r'
compile group: 'commons-cli', name: 'commons-cli', version: '1.4'
testCompile "junit:junit:4.13"
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.16.1'
}
bintray {
user = "$publishUser"
key = "$publishKey"
pkg {
userOrg = 'paulwellnerbou'
repo = 'maven'
name = 'git-changelog'
licenses = ['MIT']
vcsUrl = 'https://github.com/paulwellnerbou/git-changelog'
}
publications = ['MyPublication']
dryRun = false
publish = true
}