-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
70 lines (63 loc) · 2.07 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
/*
* Copyright (c) 2016 Lite Solutions
*
* This code is licensed under the Apache Software License version 2.
* For more information, see the LICENSE file at the root of this package.
*
* Should you not have the source code available, and the file above is
* unavailable, you can obtain a copy of the license here:
*
* https://www.apache.org/licenses/LICENSE-2.0.txt
*
*/
plugins {
id 'java-library'
id 'maven-publish'
}
group = "org.litesolutions"
version = "0.7.2"
description = "Grappa integration for Sonar's SSLR"
def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion // defaults to sourceCompatibility
repositories {
mavenCentral()
}
dependencies {
implementation('org.codehaus.sonar.sslr-squid-bridge:sslr-squid-bridge:2.6')
implementation('com.github.fge:grappa:2.0.4:all') {
exclude group: "com.google.guava", module: "guava"
}
testImplementation("org.codehaus.sonar.sslr:sslr-testing-harness:1.20") {
exclude group: "junit", module: "junit"
exclude group: "org.easytesting", module: "fest-assert"
}
}
project.ext {
gitrwscm = sprintf("git@github.com:litesolutions/%s", name)
gitroscm = sprintf("https://github.com/litesolutions/%s.git", name)
projectURL = sprintf("https://github.com/litesolutions/%s", name)
sonatypeStaging = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
sonatypeSnapshots = "https://oss.sonatype.org/content/repositories/snapshots/"
}
java {
withJavadocJar()
withSourcesJar()
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "nexus"
url = uri("https://maven.litesolutions.es/content/repositories/litesolutions-releases/")
credentials {
username = project.findProperty("nexusUsername") ?: System.getenv("NEXUS_USERNAME")
password = project.findProperty("nexusPassword") ?: System.getenv("NEXUS_PASSWORD")
}
}
}
}