/
build.gradle.kts
executable file
·73 lines (61 loc) · 1.76 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
mavenCentral()
}
}
val kotlinVersion = "1.5.0"
plugins {
kotlin("jvm") version "1.5.0"
id("org.jetbrains.kotlin.plugin.noarg").version("1.5.0")
`maven-publish`
}
group = "com.github.sqlbuilder"
version = "1.21.0"
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets["main"].allSource)
}
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
withSourcesJar()
}
repositories {
jcenter()
mavenCentral()
}
noArg {
annotation("sqlbuilder.meta.Table")
}
dependencies {
implementation(kotlin("stdlib-jdk8", version = kotlinVersion))
implementation(kotlin("reflect", version = kotlinVersion))
implementation("org.slf4j:slf4j-api:1.7.25")
testImplementation (kotlin("test", version = kotlinVersion))
testImplementation("com.h2database:h2:1.4.197")
testImplementation("junit:junit:4.11")
testImplementation("org.slf4j:slf4j-simple:1.7.7")
}
publishing {
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
}
}
repositories {
maven {
url = uri("https://api.bintray.com/maven/laurentvanderlinden/maven/sqlbuilder")
credentials {
username = if (project.hasProperty("bintray_username")) project.property("bintray_username") as String else ""
password = if (project.hasProperty("bintray_api_key")) project.property("bintray_api_key") as String else ""
}
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
}
}
defaultTasks = mutableListOf("build")