forked from kevin-wayne/algs4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
83 lines (72 loc) · 1.87 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
81
82
83
buildscript {
repositories {
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.7"
}
group = 'edu.princeton.cs'
version = '1.0.1'
allprojects {
repositories {
jcenter()
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
sourceCompatibility = 1.7
targetCompatibility = 1.7
}
task sourcesJar(type: Jar, dependsOn:classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
groupId 'edu.princeton.cs'
artifactId 'algs4'
version '1.0.2'
}
}
}
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
publish = true
override = false
pkg {
repo = 'maven'
name = 'algs4'
userOrg = 'algs4'
desc = 'Source Code for Algorithms, 4th Edition'
licenses = ['GPL-3.0']
vcsUrl = 'https://github.com/kevin-wayne/algs4.git'
websiteUrl = 'https://github.com/kevin-wayne/algs4'
labels = ['algorithms', 'java', 'Robert Sedgewick', 'Kevin Wayne']
publicDownloadNumbers = true
githubRepo = 'kevin-wayne/algs4'
githubReleaseNotesFile = 'README.md'
version {
name = '1.0.2'
vcsTag = '1.0.2'
}
}
}
task wrapper(type: Wrapper) {
gradleVersion = '2.4'
}