forked from NordPool/public-intraday-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
58 lines (53 loc) · 1.49 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
/*
* This file was generated by the Gradle 'init' task.
*
* This project uses @Incubating APIs which are subject to change.
*/
plugins {
id 'java'
id 'maven-publish'
}
repositories {
mavenLocal()
mavenCentral {
url = uri('https://repo.maven.apache.org/maven2/')
}
}
dependencies {
implementation 'com.fasterxml.jackson.core:jackson-core:2.8.8'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.8.8'
implementation 'commons-lang:commons-lang:2.6'
}
group = 'com.npspot'
description = 'Nord Pool Intraday Public API classes'
if (System.getenv("VERSION")) {
version = System.getenv("VERSION")
} else {
version = '1.1.10'
}
java.sourceCompatibility = JavaVersion.VERSION_17
tasks.register('sourceJar', Jar) {
from sourceSets.main.allSource
archiveClassifier.set('sources')
}
publishing {
publications {
esamLibrary(MavenPublication){
from(components.java)
artifact tasks.named("sourceJar").get() // This line is added to include source code in the publication
}
}
repositories {
maven {
name = "EsamS3MavenRepo"
authentication {
awsIm(AwsImAuthentication) // takes the credentials from the ~/.aws/credentials
}
if (project.version.endsWith('-SNAPSHOT')) {
url "s3://esamtrade-maven-repo/snapshots"
} else {
url "s3://esamtrade-maven-repo/releases"
}
}
}
}