-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.gradle
90 lines (77 loc) 路 2.13 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
buildscript {
ext.projectName = 'ditiow'
ext.projectGroup = 'com.vidolima'
ext.projectArtifact = 'ditiow'
ext.projectVersion = '1.2.0'
repositories {
mavenCentral()
jcenter()
}
}
plugins {
id "com.jfrog.bintray" version "1.8.5"
}
group projectGroup
version projectVersion
allprojects {
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'maven-publish'
}
repositories {
jcenter()
}
publishing {
publications {
publish(MavenPublication) {
from components.java
groupId projectGroup
artifactId projectArtifact
version projectVersion
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRY_API_KEY')
configurations = ['archives']
pkg {
repo = 'maven'
name = projectName
licenses = ['MIT']
publicDownloadNumbers = true
websiteUrl = 'https://github.com/marcosvidolin/ditiow'
issueTrackerUrl = 'https://github.com/marcosvidolin/ditiow/issues'
vcsUrl = 'https://github.com/marcosvidolin/ditiow.git'
githubRepo = 'marcosvidolin/ditiow'
version {
name = projectVersion
vcsTag = projectVersion
gpg {
sign = true
}
}
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
dependencies {
// https://mvnrepository.com/artifact/org.springframework/spring-web
compile group: 'org.springframework', name: 'spring-web', version: '3.2.18.RELEASE'
// https://mvnrepository.com/artifact/org.aspectj/aspectjrt
compile group: 'org.aspectj', name: 'aspectjrt', version: '1.9.6'
testImplementation 'junit:junit:4.13'
// https://mvnrepository.com/artifact/org.mockito/mockito-core
testCompile group: 'org.mockito', name: 'mockito-core', version: '3.3.3'
testCompile 'org.mockito:mockito-inline:2.8.9'
}