-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51e5652
commit ca3bc7b
Showing
8 changed files
with
75 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,109 +1,26 @@ | ||
apply plugin: 'java' | ||
|
||
project.ext.tags = ['violation', 'static code analysis', 'Checkstyle', 'CPPLint', 'CPPCheck', 'CSSLint', 'Findbugs', 'Flake8', 'PyLint', 'Pep8', 'Mccabe', 'PyFlakes', 'JSHint', 'Lint', 'PerlCritic', 'PMD', 'ReSharper', 'XMLLint'] | ||
group = 'se.bjurr.violations' | ||
description = 'Library that adds violation comments from static code analysis to GitLab.' | ||
|
||
|
||
buildscript { | ||
repositories { | ||
jcenter() | ||
maven { | ||
url "https://plugins.gradle.org/m2/" | ||
} | ||
maven { url "https://jitpack.io" } | ||
} | ||
dependencies { | ||
classpath 'com.bmuschko:gradle-nexus-plugin:2.3.1' | ||
classpath 'net.researchgate:gradle-release:2.4.0' | ||
classpath 'gradle.plugin.se.bjurr.gitchangelog:git-changelog-gradle-plugin:1.40' | ||
classpath 'gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.6' | ||
classpath 'com.github.tomasbjerre:gradle-scripts:master-SNAPSHOT' | ||
} | ||
} | ||
apply from: project.buildscript.classLoader.getResource('java.gradle').toURI() | ||
apply from: project.buildscript.classLoader.getResource('changelog.gradle').toURI() | ||
apply from: project.buildscript.classLoader.getResource('release.gradle').toURI() | ||
|
||
apply plugin: 'java' | ||
apply plugin: 'maven' | ||
apply plugin: 'eclipse' | ||
apply plugin: 'signing' | ||
apply plugin: 'com.bmuschko.nexus' | ||
apply plugin: 'net.researchgate.release' | ||
apply plugin: 'se.bjurr.gitchangelog.git-changelog-gradle-plugin' | ||
apply plugin: 'com.github.sherter.google-java-format' | ||
|
||
task gitChangelogTask(type: se.bjurr.gitchangelog.plugin.gradle.GitChangelogTask) { | ||
filePath = "CHANGELOG.md"; | ||
templateContent = new File('changelog.mustache').getText('UTF-8'); | ||
removeIssueFromMessage = true | ||
} | ||
|
||
group = 'se.bjurr.violations' | ||
|
||
sourceCompatibility = 1.7 | ||
targetCompatibility = 1.7 | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
maven { url 'https://jitpack.io' } | ||
} | ||
|
||
dependencies { | ||
compile 'se.bjurr.violations:violation-comments-lib:1.44' | ||
compile 'com.github.tomasbjerre:java-gitlab-api:master' | ||
testCompile 'junit:junit:4.12' | ||
testCompile 'org.assertj:assertj-core:2.3.0' | ||
} | ||
|
||
eclipse { | ||
classpath { | ||
downloadSources = true | ||
downloadJavadoc = true | ||
} | ||
} | ||
|
||
sourceSets { | ||
main.java.srcDirs = ['src/main/java' ] | ||
test.java.srcDirs = ['src/test/java' ] | ||
} | ||
|
||
if (JavaVersion.current().isJava8Compatible()) { | ||
allprojects { | ||
tasks.withType(Javadoc) { | ||
options.addStringOption('Xdoclint:none', '-quiet') | ||
} | ||
} | ||
} | ||
|
||
modifyPom { | ||
project { | ||
name 'Violation Comments to GitLab Lib' | ||
description 'Library that adds violation comments from static code analysis to GitHub.' | ||
url 'https://github.com/tomasbjerre/violation-comments-to-gitlab-lib' | ||
inceptionYear '2016' | ||
scm { | ||
url 'https://github.com/tomasbjerre/violation-comments-to-gitlab-lib' | ||
connection 'scm:https://[email protected]/tomasbjerre/violation-comments-to-gitlab-lib.git' | ||
developerConnection 'scm:git://github.com/tomasbjerre/violation-comments-to-gitlab-lib.git' | ||
} | ||
|
||
licenses { | ||
license { | ||
name 'The Apache Software License, Version 2.0' | ||
url 'http://www.apache.org/licenses/LICENSE-2.0.txt' | ||
distribution 'repo' | ||
} | ||
} | ||
|
||
developers { | ||
developer { | ||
id 'tomasbjerre' | ||
name 'Tomas Bjerre' | ||
email '[email protected]' | ||
} | ||
} | ||
} | ||
} | ||
|
||
extraArchive { | ||
sources = true | ||
tests = true | ||
javadoc = true | ||
} | ||
|
||
compileJava.dependsOn 'googleJavaFormat' | ||
|
||
afterReleaseBuild.dependsOn { | ||
[install, uploadArchives] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
./gradlew clean gitChangelogTask eclipse build install -i | ||
./gradlew --refresh-dependencies clean gitChangelogTask eclipse build install -i |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#Sun Oct 18 08:40:15 CEST 2015 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.3.1-bin.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters