This repository was archived by the owner on May 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild.gradle
86 lines (70 loc) · 2.11 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
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
classpath "com.gradle.publish:plugin-publish-plugin:0.9.7"
classpath "gradle.plugin.nl.javadude.gradle.plugins:license-gradle-plugin:0.13.1"
}
}
subprojects {
group = "de.monkeyworks.buildmonkey"
version = '0.4.1'
apply plugin: 'groovy'
apply plugin: 'maven-publish'
apply plugin: 'maven'
apply plugin: 'eclipse'
group = "de.monkeyworks.buildmonkey"
apply plugin: "com.github.hierynomus.license"
license {
header rootProject.file('LICENSE')
strictCheck true
skipExistingHeaders true
}
repositories {
//mavenLocal()
mavenCentral()
jcenter()
maven {
url "http://dl.bintray.com/monkey-works/BuildMonkey"
}
}
dependencies {
compile gradleApi()
compile localGroovy()
testCompile 'junit:junit:4.12'
}
build.dependsOn install
if(project.name != 'base') {
publishing {
publications {
mavenGroovy(MavenPublication) {
groupId "${group}"
version project.version
from components.java
}
}
}
}
Properties properties = new Properties()
File propFile = "${System.properties['user.home']}${File.separator}.gradle${File.separator}artifactory.properties" as File
if(propFile.exists()) {
properties.load(propFile.newDataInputStream())
publishing {
repositories {
maven {
name "artifactory"
url "https://artifactory.monkey-works.de/artifactory/gradle-plugins"
credentials {
username properties.getProperty("artifactory.user")
password properties.getProperty("artifactory.password")
}
}
}
}
}
}