forked from viartemev/ktor-flyway-feature
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
120 lines (106 loc) · 3.42 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
buildscript {
ext {
ktor_version = '1.6.6'
logback_version = '1.2.7'
}
}
plugins {
id 'java'
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.5"
id 'com.adarshr.test-logger' version '3.1.0'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
}
group 'com.viartemev'
version '1.2.2'
sourceCompatibility = 1.8
repositories {
mavenCentral()
}
dependencies {
implementation "org.flywaydb:flyway-core:8.2.0"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
runtimeOnly "ch.qos.logback:logback-classic:$logback_version"
implementation "io.ktor:ktor-server-core:$ktor_version"
testImplementation "io.ktor:ktor-server-test-host:$ktor_version"
testImplementation "org.testcontainers:postgresql:1.16.2"
testImplementation "org.testcontainers:testcontainers:1.16.2"
testImplementation "org.testcontainers:junit-jupiter:1.16.2"
testImplementation "com.zaxxer:HikariCP:5.0.0"
testImplementation "org.postgresql:postgresql:42.3.1"
testImplementation "org.junit.jupiter:junit-jupiter-api:5.8.2"
testImplementation "org.junit.jupiter:junit-jupiter-params:5.8.2"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.8.2"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
archiveBaseName = "ktor-flyway-feature"
archiveVersion = "1.2.2"
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives jar
archives sourcesJar
}
publishing {
publications {
mavenJava(MavenPublication) {
artifact(sourcesJar) {
classifier = 'sources'
}
pom {
groupId = 'com.viartemev'
artifactId = 'ktor-flyway-feature'
from components.kotlin
name = 'Ktor Flyway feature'
description = 'Ktor flyway feature'
url = 'https://github.com/viartemev/ktor-flyway-feature'
licenses {
license {
name = 'MIT'
url = 'https://raw.githubusercontent.com/viartemev/ktor-flyway-feature/master/LICENSE'
}
}
developers {
developer {
id = 'viartemev'
name = 'Vyacheslav Artemyev'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/viartemev/ktor-flyway-feature.git'
developerConnection = 'scm:git:ssh://github.com/viartemev/ktor-flyway-feature.git'
url = 'https://github.com/viartemev/ktor-flyway-feature'
}
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
userOrg = 'viartemev'
repo = 'Maven'
name = 'ktor-flyway-feature'
licenses = ['MIT']
desc = 'Ktor flyway feature'
websiteUrl = 'https://github.com/viartemev/ktor-flyway-feature'
issueTrackerUrl = 'https://github.com/viartemev/ktor-flyway-feature/issues'
vcsUrl = 'https://github.com/viartemev/ktor-flyway-feature.git'
publicDownloadNumbers = true
}
}