This repository has been archived by the owner on Mar 8, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
133 lines (110 loc) · 3.39 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'net.saliman:gradle-cobertura-plugin:2.2.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.2'
}
}
plugins {
id "com.jfrog.bintray" version "1.2"
}
apply plugin: 'java'
apply plugin: 'groovy'
apply plugin: 'idea'
apply plugin: 'codenarc'
apply plugin: 'maven'
apply plugin: 'maven-publish'
// _____ _ _
// | __ \ | | (_)
// | | | | ___ _ __ ___ _ __ __| | ___ _ __ ___ _ ___ ___
// | | | |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \/ __|
// | |__| | __/ |_) | __/ | | | (_| | __/ | | | (__| | __/\__ \
// |_____/ \___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___||___/
// | |
// |_|
repositories {
jcenter()
mavenLocal()
}
dependencies {
// GRADLE
compile gradleApi()
compile 'org.codehaus.groovy:groovy-all:2.3.0'
// TESTS
testCompile 'org.spockframework:spock-core:1.0-groovy-2.3'
testCompile 'junit:junit:4.12'
}
// _____ __ _ _ _
// / ____| / _(_) | | (_)
// | | ___ _ __ | |_ _ __ _ _ _ _ __ __ _| |_ _ ___ _ __
// | | / _ \| '_ \| _| |/ _` | | | | '__/ _` | __| |/ _ \| '_ \
// | |___| (_) | | | | | | | (_| | |_| | | | (_| | |_| | (_) | | | |
// \_____\___/|_| |_|_| |_|\__, |\__,_|_| \__,_|\__|_|\___/|_| |_|
// __/ |
// |___/
sourceCompatibility = 1.7
targetCompatibility = 1.7
codenarc {
configFile = new File(projectDir, 'src/codenarc/rules.groovy')
}
codenarcTest.ignoreFailures = true
// ____ _ _
// | _ \(_) | |
// | |_) |_ _ __ | |_ _ __ __ _ _ _
// | _ <| | '_ \| __| '__/ _` | | | |
// | |_) | | | | | |_| | | (_| | |_| |
// |____/|_|_| |_|\__|_| \__,_|\__, |
// __/ |
// |___/
group 'net.kaleidos.gradle.plugins'
version '0.0.2'
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
repositories {
jcenter()
}
publishing {
publications {
mavenCustom(MavenPublication) {
groupId 'net.kaleidos.gradle.plugins'
artifactId 'emerger'
version '0.0.2'
from components.java
artifact sourcesJar
}
}
}
bintray {
user = bintrayUser
key = bintrayKey
publish = true
publications = ['mavenCustom']
pkg {
name = 'emerger'
repo = "maven"
version {
name = '0.0.2'
}
}
}
// _____ _ _______ _
// / ____| | | |__ __| | |
// | | _ _ ___| |_ ___ _ __ ___ | | __ _ ___| | _____
// | | | | | / __| __/ _ \| '_ ` _ \ | |/ _` / __| |/ / __|
// | |___| |_| \__ \ || (_) | | | | | | | | (_| \__ \ <\__ \
// \_____\__,_|___/\__\___/|_| |_| |_| |_|\__,_|___/_|\_\___/
//
task('console', dependsOn:'classes', type: JavaExec) {
group = 'help'
description 'starts a Groovy console with the classpath of the current project'
main='groovy.ui.Console'
project.dependencies.add("compile", 'org.codehaus.groovy:groovy-console:2.4.0')
classpath = sourceSets.main.runtimeClasspath
}