-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.gradle
43 lines (35 loc) · 978 Bytes
/
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
plugins {
id 'base'
id 'maven-publish'
id 'nebula.release' version '13.0.0'
}
group = 'org.terasology.config'
task zipCodeMetrics(type: Zip) {
description 'Creates a zip archive that contains all codemetric config files'
from ('.') {
include 'checkstyle/'
include 'pmd/'
include 'findbugs/'
}
destinationDirectory = file(buildDir)
archiveBaseName = 'codemetrics'
}
publishing {
publications {
codemetrics(MavenPublication) {
artifact zipCodeMetrics
artifactId 'codemetrics'
}
}
repositories {
maven {
if (project.hasProperty('artifactoryUser') && project.hasProperty('artifactoryPass')) {
credentials {
username artifactoryUser
password artifactoryPass
}
}
url "https://artifactory.terasology.io/artifactory/libs-release-local"
}
}
}