-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
61 lines (52 loc) · 1.84 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
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
id 'com.gradle.plugin-publish' version '1.3.0'
id 'org.jetbrains.kotlin.jvm' version '1.9.10'
id 'groovy'
id 'maven-publish'
}
repositories {
mavenCentral()
maven {
url = uri("https://plugins.gradle.org/m2/")
}
}
sourceCompatibility = JavaVersion.VERSION_1_8
kotlin {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_1_8)
}
}
dependencies {
implementation platform('org.jetbrains.kotlin:kotlin-bom')
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation 'com.google.code.gson:gson:2.8.9'
implementation 'org.reflections:reflections:0.9.12'
implementation 'org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:4.0.0.2929'
testImplementation 'org.spockframework:spock-core:2.3-groovy-3.0'
}
test {
useJUnitPlatform()
}
gradlePlugin {
website = 'https://www.github.com/Itiviti/gradle-dotnet-plugin'
vcsUrl = 'https://www.github.com/Itiviti/gradle-dotnet-plugin'
description = 'gradle-dotnet-plugin is a Gradle plugin for .net sdk project build'
plugins {
dotnetPlugin {
id = 'com.itiviti.dotnet'
implementationClass = 'com.itiviti.DotnetPlugin'
displayName = 'Gradle Dotnet plugin'
description = 'Plugin for building .net sdk project'
tags.set(['dotnet', '.net core', 'msbuild', 'nunit', 'nuget'])
}
sonarPlugin {
id = 'com.itiviti.dotnet-sonar'
implementationClass = 'com.itiviti.DotnetSonarPlugin'
displayName = 'Gradle Dotnet Sonar plugin'
description = 'Plugin for wrapping .net sdk project build with sonar'
tags.set(['dotnet', '.net core', 'msbuild', 'sonarqube'])
}
}
}
println "##vso[task.setvariable variable=project.version]${project.version}"