-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
72 lines (65 loc) · 1.88 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
plugins {
id 'eclipse'
id 'java-library'
id 'maven-publish'
id 'org.web3j' version '4.9.0'
}
group = 'eu.i3market.seedsindex'
version = '2.0.0-SNAPSHOT'
repositories {
maven {
url 'http://95.211.3.251:8081/repository/maven-central/'
allowInsecureProtocol true
}
mavenCentral()
}
dependencies {
implementation 'com.google.code.gson:gson:2.9.0'
implementation 'org.slf4j:slf4j-api:1.7.36'
implementation 'org.web3j:core:4.9.0'
testImplementation 'junit:junit:4.13.2'
}
java {
withJavadocJar()
withSourcesJar()
}
web3j {
generatedPackageName = 'eu.i3market.seedsindex.besu'
}
publishing {
publications {
mavenJava(MavenPublication) {
artifactId = 'seedsindex'
from components.java
versionMapping {
usage('java-api') {
fromResolutionOf('runtimeClasspath')
}
usage('java-runtime') {
fromResolutionResult()
}
}
pom {
name = 'SEEDS Index'
description = 'SEEDS Index library'
url = 'https://gitlab.com/i3-market/code/wp4/seedsindex'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
}
}
}
repositories {
maven {
name = 'i3market'
credentials(PasswordCredentials)
def releasesRepoUrl = 'http://95.211.3.251:8081/repository/maven-releases/'
def snapshotsRepoUrl = 'http://95.211.3.251:8081/repository/maven-snapshots/'
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
allowInsecureProtocol true
}
}
}