-
Notifications
You must be signed in to change notification settings - Fork 7
/
build.gradle
94 lines (80 loc) · 2.31 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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
mavenCentral()
maven {
url "https://dl.bintray.com/dieyi/maven"
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
group = "com.dieyidezui.gson"
//name = "type-safe-adapter"
version = "1.0.1"
apply plugin: 'java'
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
repositories {
jcenter()
}
dependencies {
compile 'com.google.code.gson:gson:2.2.2'
testCompile 'junit:junit:4.12'
}
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
afterEvaluate {
task sourcesJar(type: Jar) {
from sourceSets.main.java.srcDirs
classifier = 'sources'
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
tasks.install {
repositories.mavenInstaller {
pom {
//noinspection GroovyAssignabilityCheck
project {
packaging 'jar'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'dieyidezui'
name '耿万鹏'
email '[email protected]'
}
}
}
}
}
}
}
bintray {
user = BINTRAY_USER
key = BINTRAY_KEY
configurations = ['archives']
pkg {
repo = "maven"
name = "type-safe-adapter"
websiteUrl = "https://github.com/CoffeePartner/gson-type-safe-adapter"
vcsUrl = "[email protected]:CoffeePartner/gson-type-safe-adapter.git"
licenses = ["Apache-2.0"]
publish = true
}
}