This repository has been archived by the owner on Jun 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
/
Copy pathbuild.gradle
107 lines (95 loc) · 2.52 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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-rc2'
}
}
plugins {
id "com.jfrog.bintray" version "1.7.3"
}
apply plugin: 'java'
apply plugin: 'maven-publish'
version = 1.0
subprojects.each { subproject -> evaluationDependsOn( subproject.path ) }
jar.dependsOn subprojects.tasks['classes']
jar {
manifest {
attributes 'Implementation-Title': 'Archive Patcher',
'Implementation-Version': version,
'Implementation-Vendor': 'https://github.com/andrewhayden/archive-patcher'
}
baseName = project.name
subprojects.each { subproject ->
from subproject.sourceSets.main.output
}
from "LICENSE"
}
task sourcesJar(type: Jar, dependsOn: classes) {
manifest {
attributes 'Implementation-Title': 'Archive Patcher',
'Implementation-Version': version,
'Implementation-Vendor': 'https://github.com/andrewhayden/archive-patcher'
}
baseName = project.name
classifier = 'sources'
subprojects.each { subproject ->
from subproject.sourceSets.main.allSource
}
from "LICENSE"
}
task javadocJar (type: Jar, dependsOn: javadoc) {
manifest {
attributes 'Implementation-Title': 'Archive Patcher',
'Implementation-Version': version,
'Implementation-Vendor': 'https://github.com/andrewhayden/archive-patcher'
}
baseName = project.name
classifier = 'javadoc'
subprojects.each { subproject ->
from subproject.javadoc.destinationDir
}
from "LICENSE"
}
dependencies {
compile project(':tools')
}
allprojects {
repositories {
jcenter()
}
}
artifacts {
archives jar
archives sourcesJar
archives javadocJar
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.google'
artifactId 'archivepatcher'
version version
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['MyPublication']
filesSpec {
from 'build/libs'
into '/'
}
pkg {
repo = 'Maven'
name = 'archive-patcher'
desc = 'Archive Patcher'
licenses = ['Apache-2.0']
websiteUrl = 'https://github.com/andrewhayden/archive-patcher'
issueTrackerUrl = 'https://github.com/andrewhayden/archive-patcher/issues'
vcsUrl = 'https://github.com/andrewhayden/archive-patcher.git'
}
}