-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
82 lines (72 loc) · 2.06 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
plugins {
id 'java-gradle-plugin'
id 'maven-publish'
id 'com.gradle.plugin-publish' version '0.15.0'
}
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
group = 'io.github.arc-blroth'
archivesBaseName = 'cargo-wrapper'
version = "1.1.0"
dependencies {
compileOnly gradleApi()
}
tasks.withType(JavaCompile).configureEach {
it.options.encoding = 'UTF-8'
if (JavaVersion.current().isJava9Compatible()) {
it.options.release = 8
}
}
java {
withJavadocJar()
withSourcesJar()
}
jar {
from 'LICENSE'
}
pluginBundle {
website = "https://$pluginUrlBase"
vcsUrl = "https://${pluginUrlBase}.git"
tags = ['rust', 'cargo', 'native']
}
gradlePlugin {
plugins {
cargoWrapper {
id = 'io.github.arc-blroth.cargo-wrapper'
implementationClass = 'ai.arcblroth.cargo.CargoWrapperPlugin'
displayName = pluginDisplayName
description = pluginDescription
}
}
}
afterEvaluate {
publishing {
publications {
forEach {
if(it instanceof MavenPublication) {
it.pom {
url = "https://$pluginUrlBase"
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'arcblroth'
name = "Arc'blroth"
}
}
scm {
def scmRepo = "scm:git:git://${pluginUrlBase}.git"
connection = scmRepo
developerConnection = scmRepo
url = scmRepo
}
}
}
}
}
}
}