-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1605b78
commit 1604e60
Showing
7 changed files
with
64 additions
and
52 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,36 @@ | ||
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 = 'Report static code analysis to Bitbucket Cloud.' | ||
project.ext.useShadowJar = true | ||
project.ext.syncCentral = false | ||
|
||
jar { | ||
manifest { | ||
attributes 'Main-Class': 'se.bjurr.violations.main.Main' | ||
} | ||
} | ||
|
||
buildscript { | ||
repositories { | ||
maven { url "https://jitpack.io" } | ||
mavenCentral() | ||
mavenLocal() | ||
} | ||
dependencies { | ||
classpath 'com.github.tomasbjerre:gradle-scripts:master-SNAPSHOT' | ||
classpath 'se.bjurr.gradle:gradle-scripts:2.+' | ||
} | ||
} | ||
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 from: project.buildscript.classLoader.getResource('violations.gradle').toURI() | ||
|
||
project.ext.buildConfig = [ | ||
publishing: [ | ||
relocate: [ | ||
'org:org', | ||
'javax:javax', | ||
'com:com', | ||
'se:se', | ||
'io:io' | ||
] | ||
], | ||
violations: [ | ||
updateReadme: true | ||
], | ||
manifest: [ | ||
mainClass: 'se.bjurr.violations.main.Main' | ||
] | ||
] | ||
apply from: project.buildscript.classLoader.getResource('main.gradle').toURI() | ||
|
||
dependencies { | ||
compile 'se.bjurr.violations:violation-comments-to-bitbucket-cloud-lib:1.15' | ||
compile 'se.bjurr.violations:violations-lib:1.132' | ||
compile 'se.bjurr.violations:violation-comments-to-bitbucket-cloud-lib:1.+' | ||
compile 'se.bjurr.violations:violations-lib:1.+' | ||
compile 'se.softhouse:jargo:0.1.1' | ||
compile 'org.slf4j:slf4j-simple:1.8.0-beta2' | ||
} | ||
|
||
task copyDependencies(type: Copy) { | ||
from configurations.default | ||
into 'build/libs' | ||
} | ||
|
||
shadowJar { | ||
mergeServiceFiles() { | ||
exclude 'META-INF/services/*' | ||
} | ||
|
||
relocate 'org', 'org' | ||
relocate 'javax', 'javax' | ||
relocate 'com', 'com' | ||
relocate 'se', 'se' | ||
relocate 'io', 'io' | ||
} |
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 +1,3 @@ | ||
version = 1.21-SNAPSHOT | ||
group = 'se.bjurr.violations' | ||
description = 'Report static code analysis to Bitbucket Cloud.' |
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 @@ | ||
#Sat Nov 18 13:33:09 CET 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.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
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