-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
90 lines (80 loc) · 2.62 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
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
group 'io.github.felipebonezi'
version '1.2.0'
sourceCompatibility = 1.8
allprojects {
repositories {
mavenCentral()
}
}
dependencies {
testImplementation group: 'junit', name: 'junit', version: '4.12'
testImplementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.70'
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'cipherizy-lib'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'Cipherizy'
description = 'This lib was developed with the main goal of make sensitive data encryption/decryption easy. Cipher lib for Java, Kotlin or Scala projects.'
url = 'https://github.com/felipebonezi/cipherizy-lib'
licenses {
license {
name = 'MIT License'
url = 'https://spdx.org/licenses/MIT.html'
}
}
developers {
developer {
id = 'felipebonezi'
name = 'Felipe Bonezi'
email = '[email protected]'
url = 'https://github.com/sponsor/felipebonezi'
}
}
scm {
connection = 'scm:git:git://github.com/felipebonezi/cipherizy-lib.git'
developerConnection = 'scm:git:ssh://github.com/felipebonezi/cipherizy-lib.git'
url = 'http://github.com/felipebonezi/cipherizy-lib'
}
}
}
}
repositories {
maven {
credentials {
username = System.getenv('SONATYPE_USERNAME')
password = System.getenv('SONATYPE_PASSWORD')
}
def releasesRepoUrl = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
def snapshotsRepoUrl = "https://s01.oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
}
}
}
signing {
sign publishing.publications.mavenJava
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}