-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
84 lines (71 loc) · 1.61 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
plugins {
id 'java'
}
group = 'ru.chrshnv'
version = System.getenv('RELEASE_VERSION')
repositories {
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.10.1'
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
test {
useJUnitPlatform()
}
apply plugin: 'maven-publish'
apply plugin: 'signing'
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
maven(MavenPublication) {
artifactId = "enot-io-sdk"
groupId = "ru.chrshnv"
version = "1.0.0"
from components.java
pom {
packaging = "jar"
name = "Enot IO SDK"
description = "Enot IO SDK for API integration written on Java"
url = "https://github.com/chrshnv/enot-io-java-sdk"
licenses {
license {
license {
name = "The Apache License, Version 2.0"
url = "http://www.apache.org/licenses/LICENSE-2.0.txt"
}
}
}
scm {
connection = "scm:https://github.com/chrshnv/enot-io-java-sdk.git"
developerConnection = "scm:[email protected]:chrshnv/enot-io-java-sdk.git"
url = "https://github.com/chrshnv/enot-io-java-sdk"
}
developers {
developer {
id = "chrshnv"
name = "Artemiy Degtyarev"
email = "[email protected]"
}
}
}
}
}
repositories {
maven {
name = "OSSRH"
url = "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
}
}
}
}
signing {
sign publishing.publications.maven
}