forked from code0x378/ktor-pebble
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
152 lines (135 loc) · 3.94 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
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
buildscript {
ext.kotlin_version = '1.4.21'
ext.ktor_version = '1.5.0'
ext.logback_version = '1.2.3'
ext.ktor_pebble_version = '0.0.6'
repositories {
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.5"
}
}
apply plugin: 'java'
apply plugin: 'maven-publish'
apply plugin: 'kotlin'
apply plugin: 'application'
apply plugin: 'com.jfrog.bintray'
version = ktor_pebble_version
group = 'com.tlogx.ktor'
description = """Ktor Pebble Templates"""
mainClassName = "io.ktor.server.netty.DevelopmentEngine"
sourceSets {
main.kotlin.srcDirs = ['src/main/kotlin']
test.kotlin.srcDirs = ['src/test/kotlin']
main.resources.srcDirs = ['src/main/resources']
}
repositories {
jcenter()
maven { url "https://kotlin.bintray.com/ktor" }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "io.ktor:ktor-server-netty:$ktor_version"
compile "io.ktor:ktor-html-builder:$ktor_version"
compile "ch.qos.logback:logback-classic:$logback_version"
compile ("io.pebbletemplates:pebble:3.1.4") {
exclude(group: "org.slf4j", module: "slf4j-api")
exclude(group: "com.google.guava", module: "guava")
}
testCompile "io.ktor:ktor-server-tests:$ktor_version"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
javadoc.failOnError = false
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from javadoc.destinationDir
}
artifacts {
archives sourcesJar
archives javadocJar
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "JeffSmithDev"
name "Jeff Smith"
email "jeff@thoughtlogix.com"
}
}
scm {
url "https://github.com/jeffsmithdev/ktor-pebble"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId 'com.tlogx.ktor'
artifactId 'ktor-pebble'
version ktor_pebble_version
pom.withXml {
def root = asNode()
root.appendNode('description', 'Ktor Pebble Template Feature')
root.appendNode('name', 'Ktor Pebble Template Feature')
root.appendNode('url', 'https://github.com/jeffsmithdev/ktor-pebble')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenPublication']
dryRun = false
publish = true
override = true
pkg {
repo = 'maven'
name = 'ktor-pebble'
desc = 'Ktor Pebble Template Feature'
websiteUrl = 'https://github.com/jeffsmithdev/ktor-pebble'
issueTrackerUrl = 'https://github.com/jeffsmithdev/ktor-pebble/issues'
userOrg = user
licenses = ['Apache-2.0']
labels = ['ktor', 'pebble', 'kotlin']
vcsUrl = 'https://github.com/jeffsmithdev/ktor-pebble.git'
githubRepo = 'jeffsmithdev/ktor-pebble'
githubReleaseNotesFile = 'README.md'
version {
name = ktor_pebble_version
desc = ktor_pebble_version
released = new Date()
}
}
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}