-
Notifications
You must be signed in to change notification settings - Fork 21
/
build.gradle
88 lines (76 loc) · 2.32 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
buildscript {
repositories {
jcenter()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.4'
classpath 'com.gradle.publish:plugin-publish-plugin:0.14.0'
}
}
plugins {
id 'net.researchgate.release' version '2.8.1'
}
group 'cz.alenkacz'
version = version == 'unspecified' ? 'DEVELOPER-SNAPSHOT' : version
apply plugin: 'groovy'
apply plugin: 'java'
apply plugin: 'maven'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.gradle.plugin-publish'
repositories {
jcenter()
}
dependencies {
compile gradleApi()
compile 'org.scalameta:scalafmt-dynamic_2.12:2.7.5'
compile 'org.scala-lang.modules:scala-xml_2.12:1.3.0'
testCompile 'junit:junit:4.13'
testCompile gradleTestKit()
testCompile ('org.spockframework:spock-core:1.3-groovy-2.4') {
exclude group:'org.codehaus.groovy'
}
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
archiveClassifier = 'sources'
}
artifacts {
archives sourcesJar
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
configurations = ['archives']
publish = true
pkg {
repo = 'maven'
name = 'gradle-scalafmt'
desc = 'Gradle plugin that can run scalafmt as a part of your build.'
licenses = ['MIT']
vcsUrl = 'https://github.com/alenkacz/gradle-scalafmt.git'
websiteUrl = 'https://github.com/alenkacz/gradle-scalafmt'
issueTrackerUrl = 'https://github.com/alenkacz/gradle-scalafmt/issues'
labels = ['scala', 'scalafmt', 'formatting']
version {
name = project.version
vcsTag = project.version
}
}
}
project.ext.set('gradle.publish.key', System.getenv('GRADLE_PORTAL_KEY'))
project.ext.set('gradle.publish.secret', System.getenv('GRADLE_PORTAL_SECRET'))
pluginBundle {
website = 'https://github.com/alenkacz/gradle-scalafmt'
vcsUrl = 'https://github.com/alenkacz/gradle-scalafmt'
description = 'Gradle plugin that can run scalafmt as a part of your build.'
tags = ['scalafmt', 'scala', "formatting"]
plugins {
scalafmtPlugin {
id = 'cz.alenkacz.gradle.scalafmt'
displayName = 'Gradle Scalafmt plugin'
}
}
}