-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
114 lines (99 loc) · 3.38 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
108
109
110
111
112
113
114
group 'br.com.simpli'
version '3.3.0'
apply plugin: 'maven'
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'signing'
buildscript {
ext.kotlin_version = '1.3.50'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:0.9.9"
}
}
repositories {
mavenCentral()
}
dependencies {
implementation group: 'javax', name: 'javaee-web-api', version: '7.0'
implementation group: 'commons-dbcp', name: 'commons-dbcp', version: '1.4'
implementation group: 'commons-pool', name: 'commons-pool', version: '1.6'
implementation group: 'commons-collections', name: 'commons-collections', version: '3.2.1'
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
api group: 'mysql', name: 'mysql-connector-java', version: '5.1.44'
implementation group: 'junit', name: 'junit', version: '4.12'
api "br.com.simpli:simpli-model:1.1.0"
implementation "br.com.simpli:simpli-tools:1.3.0"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task dokkaJavadoc(type: org.jetbrains.dokka.gradle.DokkaTask) {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}
task javadocJar(type: Jar, dependsOn: dokkaJavadoc) {
classifier = 'javadoc'
from "$buildDir/javadoc"
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: 'https://oss.sonatype.org/service/local/staging/deploy/maven2') {
authentication(userName: ossUser, password: ossPassword)
}
pom.project {
name 'Simpli SQL'
description 'Tools that makes SQL connections easier and don\'t use ORM'
url 'https://github.com/simplitech/simpli-sql'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'gil'
name 'Gil Lopes Bueno'
email '[email protected]'
}
developer {
id 'joao.lippi'
name 'Joao Pedro Lippi'
email '[email protected]'
}
developer {
id 'ftgibran'
name 'Felipe Gibran Eleuterio Toledo'
email '[email protected]'
}
}
scm {
connection 'scm:git:git://github.com/simplitech/simpli-sql.git'
developerConnection 'scm:git:ssh://github.com/simplitech/simpli-sql.git'
url 'https://github.com/simplitech/simpli-sql'
}
}
}
}
}
dokka {
outputFormat = 'javadoc'
outputDirectory = "$buildDir/javadoc"
}