-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
71 lines (58 loc) · 1.61 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
val kotlinVersion = "1.3.31"
plugins {
`java-gradle-plugin`
`maven-publish`
`kotlin-dsl`
id("com.gradle.plugin-publish") version "0.10.1"
}
group = "lt.neworld.gradle"
version = "0.6.0"
repositories {
maven {
setUrl("https://plugins.gradle.org/m2/")
}
}
dependencies {
compile(kotlin("stdlib-jdk8"))
compile("com.moowork.gradle:gradle-node-plugin:1.3.1")
compile("com.squareup.moshi:moshi:1.8.0")
compile("com.squareup.moshi:moshi-kotlin:1.8.0")
testCompile("junit:junit:4.12")
}
val sourcesJar by tasks.creating(Jar::class) {
setDuplicatesStrategy(DuplicatesStrategy.EXCLUDE)
classifier = "sources"
from(sourceSets["main"].allSource)
}
val archives = configurations.getByName("archives")
artifacts.add(archives.name, sourcesJar) {
builtBy(sourcesJar)
}
gradlePlugin {
plugins {
register("jdeploy") {
id = "lt.neworld.jdeploy"
implementationClass = "lt.neworld.gradle.jdeploy.JDeployPlugin"
}
}
}
pluginBundle {
website = "https://github.com/neworld/gradle-jdeploy-plugin"
vcsUrl = "https://github.com/neworld/gradle-jdeploy-plugin"
description = "Plugin for publishing JVM software through NPM."
tags = listOf("jdeploy", "publishing", "npm")
(plugins) {
"jdeploy" {
id = "lt.neworld.jdeploy"
displayName = "jDeploy plugin"
}
}
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
tasks.withType<JavaCompile> {
sourceCompatibility = "1.8"
targetCompatibility = "1.8"
}