Skip to content

Commit

Permalink
Shadow JAR upgrade, Gradle upgrade, Checkstyle upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
galovics committed Sep 29, 2023
1 parent d1cc349 commit 1f9487a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
10 changes: 5 additions & 5 deletions build.gradle
Expand Up @@ -52,13 +52,13 @@ subprojects {
}

checkstyle {
toolVersion = '8.14'
toolVersion = '10.12.3'
}

tasks.withType(Checkstyle) {
reports {
xml.enabled false
html.enabled true
xml.required = false
html.required = true
}
}

Expand All @@ -75,12 +75,12 @@ subprojects {
apply plugin: 'signing'

task javadocJar(type: Jar) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc
}

task sourcesJar(type: Jar) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

Expand Down
14 changes: 6 additions & 8 deletions config/checkstyle/checkstyle.xml
Expand Up @@ -11,6 +11,10 @@
<property name="eachLine" value="true"/>
</module>

<module name="LineLength">
<property name="max" value="180"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="TreeWalker">
<module name="OuterTypeFilename"/>
<module name="IllegalTokenText">
Expand All @@ -24,10 +28,6 @@
<property name="allowByTailComment" value="true"/>
<property name="allowNonPrintableEscapes" value="true"/>
</module>
<module name="LineLength">
<property name="max" value="180"/>
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
</module>
<module name="OneTopLevelClass"/>
<module name="NoLineWrap"/>
<module name="EmptyBlock">
Expand Down Expand Up @@ -170,13 +170,11 @@
</module>
<module name="JavadocMethod">
<property name="severity" value="warning"/>
<property name="scope" value="public"/>
<property name="accessModifiers" value="public"/>
<property name="allowMissingParamTags" value="true"/>
<property name="allowMissingThrowsTags" value="true"/>
<property name="validateThrows" value="false"/>
<property name="allowMissingReturnTag" value="true"/>
<property name="minLineCount" value="2"/>
<property name="allowedAnnotations" value="Override, Test, Bean"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
</module>
<module name="MethodName">
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 4 additions & 3 deletions swagger-brake-cli/build.gradle
Expand Up @@ -2,9 +2,10 @@ buildscript {
repositories {
jcenter()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:6.1.0"
classpath "com.github.johnrengelman:shadow:8.1.1"
}
}

Expand All @@ -28,6 +29,6 @@ jar {
}

shadowJar {
baseName = 'swagger-brake'
classifier = 'cli'
archiveBaseName = 'swagger-brake'
archiveClassifier = 'cli'
}

0 comments on commit 1f9487a

Please sign in to comment.