-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathbuild.gradle
81 lines (69 loc) · 2.22 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
plugins {
id "base"
id "com.github.spotbugs" version "${githubSpotbugsVersion}"
id "de.undercouch.download" version "${downloadVersion}"
id 'net.researchgate.release' version "${researchgateReleaseVersion}"
}
description = 'Ballerinax - DataMapper Extension'
ext.puppycrawlCheckstyleVersion = project.puppycrawlCheckstyleVersion
ext.ballerinaLangVersion = project.ballerinaLangVersion
ext.dataMapperVersion = project.version
allprojects {
repositories {
mavenLocal()
maven {
url = 'https://maven.wso2.org/nexus/content/repositories/releases/'
}
maven {
url = 'https://maven.wso2.org/nexus/content/groups/wso2-public/'
}
maven {
url = 'https://repo.maven.apache.org/maven2'
}
maven {
url = 'https://maven.pkg.github.com/ballerina-platform/*'
credentials {
username System.getenv("packageUser")
password System.getenv("packagePAT")
}
}
}
}
allprojects {
apply plugin: 'java'
apply plugin: 'maven-publish'
configurations {
ballerinaStdLibs
}
dependencies {
/* Standard libraries */
ballerinaStdLibs "io.ballerina.stdlib:io-ballerina:${stdlibIoVersion}"
ballerinaStdLibs "io.ballerina.stdlib:observe-ballerina:${observeVersion}"
ballerinaStdLibs "io.ballerina:observe-ballerina:${observeInternalVersion}"
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/ballerina-platform/module-ballerinax-datamapper")
credentials {
username System.getenv("packageUser")
password System.getenv("packagePAT")
}
}
}
}
release {
// Disable check snapshots temporarily
buildTasks = []
failOnSnapshotDependencies = false
failOnCommitNeeded = false
versionPropertyFile = 'gradle.properties'
tagTemplate = 'v${version}'
git {
// To release from any branch
requireBranch = null
}
}
}
apply from: "gradle/javaProject.gradle"