-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
106 lines (90 loc) · 2.36 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
buildscript {
ext {
kotlin_version = "1.3.61"
cucumber_version = "4.3.1"
jfrogKey = System.getenv("JFROG_BINTRAY_ACCESS_KEY")
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:1.0.8.RELEASE"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-allopen:$kotlin_version"
}
}
plugins {
id "com.jfrog.bintray" version "1.8.4"
}
group "albelli"
version = System.getenv("CI_BUILD_ID")
version version
apply plugin: "java"
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
}
apply plugin: "kotlin"
apply plugin: "maven-publish"
apply plugin: "io.spring.dependency-management"
sourceSets {
main {
java {
srcDirs = ["src"]
}
}
}
bintray {
user = "derwasp"
key = jfrogKey
publications = ["MyPublication"]
publish = true
override = true // whatever for now
pkg {
repo = "random"
name = "junit.synnefo"
licenses = ["Apache-2.0"]
vcsUrl = "https://github.com/albumprinter/junit-synnefo"
}
}
dependencyManagement {
imports {
mavenBom "software.amazon.awssdk:bom:2.5.23"
}
}
dependencies {
compile "io.cucumber:cucumber-core:$cucumber_version"
compile "io.cucumber:cucumber-java:$cucumber_version"
compile "io.cucumber:cucumber-java8:$cucumber_version"
compile "io.cucumber:cucumber-junit:$cucumber_version"
compile "software.amazon.awssdk:s3:2.13.38"
compile "software.amazon.awssdk:url-connection-client:2.13.38"
compile "software.amazon.awssdk:codebuild:2.13.38"
compile "software.amazon.awssdk:sdk-core:2.13.38"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.3.3"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.3"
}
task buildJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
artifacts {
archives buildJar
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact buildJar
}
}
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}