-
Notifications
You must be signed in to change notification settings - Fork 10
/
build.gradle.kts
76 lines (62 loc) · 1.74 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
74
75
76
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
maven("https://plugins.gradle.org/m2/")
}
dependencies {
classpath("com.gradle.publish:plugin-publish-plugin:0.9.9")
}
}
plugins {
`java-gradle-plugin`
`kotlin-dsl`
`maven-publish`
id("com.gradle.plugin-publish") version "0.12.0"
}
group = "com.rohanprabhu"
version = "0.4.6"
gradlePlugin {
(plugins) {
register("kotlinDslJooqPlugin") {
id = "com.rohanprabhu.kotlin-dsl-jooq"
implementationClass = "com.rohanprabhu.gradle.plugins.kdjooq.KotlinDslJooqPlugin"
}
}
}
pluginBundle {
website = "https://github.com/rohanprabhu/kotlin-dsl-gradle-jooq-plugin"
vcsUrl = "https://github.com/rohanprabhu/kotlin-dsl-gradle-jooq-plugin"
description = "jOOQ plugin aimed for use with kotlin-dsl gradle projects"
tags = listOf("jooq", "kotlin-dsl")
(plugins) {
("kotlinDslJooqPlugin") {
displayName = "jOOQ plugin for Kotlin DSL"
}
}
}
val jooqVersion: String by project
val compileKotlin: KotlinCompile by project
compileKotlin.kotlinOptions.jvmTarget = "1.8"
tasks.withType<JavaCompile> {
targetCompatibility = "1.8"
sourceCompatibility = "1.8"
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
gradleApi()
compile("org.jooq:jooq:$jooqVersion")
compile("org.jooq:jooq-meta:$jooqVersion")
compile("org.jooq:jooq-codegen:$jooqVersion")
compile("javax.activation:activation:1.1.1")
compile("javax.xml.bind:jaxb-api:2.3.0")
compile("com.sun.xml.bind:jaxb-core:2.3.0.1")
runtime("com.sun.xml.bind:jaxb-impl:2.3.0.1")
}
publishing {
repositories {
maven(url = "build/repository")
}
}