-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
133 lines (112 loc) · 4.23 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
plugins {
id 'java-library'
id 'maven-publish'
id 'signing'
}
repositories {
mavenLocal()
mavenCentral()
}
compileJava {
sourceCompatibility = '11'
targetCompatibility = '11'
options.compilerArgs += ["-Aproject=${project.group}/${project.name}"]
}
dependencies {
api("org.testcontainers:testcontainers:1.17.6") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
}
api ("org.testcontainers:junit-jupiter:1.17.6") {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
}
implementation 'io.github.openfeign:feign-core:12.2'
implementation('io.github.openfeign:feign-jackson:12.2') {
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-core'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-databind'
exclude group: 'com.fasterxml.jackson.core', module: 'jackson-annotations'
}
compileOnly 'com.bloxbean.cardano:cardano-client-lib:0.6.2'
compileOnly 'com.bloxbean.cardano:cardano-client-backend:0.6.2'
compileOnly 'com.bloxbean.cardano:cardano-client-backend-ogmios:0.6.2'
compileOnly 'com.bloxbean.cardano:cardano-client-backend-blockfrost:0.6.2'
api 'org.assertj:assertj-core:3.24.2'
compileOnly 'org.projectlombok:lombok:1.18.24'
annotationProcessor 'org.projectlombok:lombok:1.18.24'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1'
testImplementation 'org.slf4j:slf4j-simple:2.0.7'
testImplementation 'com.bloxbean.cardano:cardano-client-lib:0.6.2'
testImplementation 'com.bloxbean.cardano:cardano-client-backend:0.6.2'
testImplementation 'com.bloxbean.cardano:cardano-client-backend-ogmios:0.6.2'
testImplementation 'com.bloxbean.cardano:cardano-client-backend-blockfrost:0.6.2'
testCompileOnly 'org.projectlombok:lombok:1.18.24'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.24'
}
tasks.withType(Javadoc) {
options.encoding = 'UTF-8'
}
task sourceJar(type: Jar) {
classifier "sources"
from sourceSets.main.allJava
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier "javadoc"
from javadoc.destinationDir
}
test {
useJUnitPlatform()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact(sourceJar) {
classifier = 'sources'
}
artifact(javadocJar) {
classifier = 'javadoc'
}
pom {
name = 'Yaci Cardano Test'
description = 'Make Java app testing on Cardano blockchain a breeze with Yaci Cardano Test Java library'
url = 'https://github.com/bloxbean/yaci-cardano-test'
licenses {
license {
name = 'The MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'satran004'
name = 'Satya'
}
}
scm {
connection = 'scm:git:git://github.com/bloxbean/yaci-cardano-test'
developerConnection = 'scm:git:ssh://[email protected]/bloxbean/yaci-cardano-test'
url = 'https://github.com/bloxbean/yaci-cardano-test'
}
}
}
}
repositories {
String ossrhUsername = System.getenv('MAVEN_USERNAME')
String ossrhPassword = System.getenv('MAVEN_PASSWORD')
maven {
def releasesRepoUrl = "https://oss.sonatype.org/service/local/staging/deploy/maven2"
def snapshotsRepoUrl = "https://oss.sonatype.org/content/repositories/snapshots/"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username ossrhUsername
password ossrhPassword
}
}
}
}
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
if (isReleaseVersion && !project.hasProperty("skipSigning")) {
signing {
sign publishing.publications
}
}