Skip to content

Commit

Permalink
Merge pull request #33 from GoodforGod/dev
Browse files Browse the repository at this point in the history
[3.1.1]
  • Loading branch information
GoodforGod authored Jan 9, 2022
2 parents 190625c + 1a64165 commit b11c4dd
Show file tree
Hide file tree
Showing 45 changed files with 593 additions and 367 deletions.
37 changes: 37 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# all-encompassing default settings unless otherwise specified
[*]
end_of_line = lf
charset = utf-8

# Json
[*.json]
indent_size = 2
indent_style = space
insert_final_newline = false
trim_trailing_whitespace = true

# Yaml
[{*.yml, *.yaml}]
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# Property files
[*.properties]
indent_size = 2
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

# XML files
[*.xml]
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
9 changes: 5 additions & 4 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '11' ]
java: [ '11', '17' ]
name: Java ${{ matrix.java }} setup

steps:
Expand All @@ -25,16 +25,17 @@ jobs:
with:
java-version: ${{ matrix.java }}

- name: Code Style
run: ./gradlew spotlessCheck

- name: Build
run: ./gradlew classes

- name: Codestyle
run: ./gradlew spotlessCheck

- name: Test
run: ./gradlew test jacocoTestReport

- name: SonarQube
if: matrix.java == '17'
run: ./gradlew sonarqube
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Documentation for **versions 1.X.X** in [this document](/README-VERSION-1.X.md).
**Gradle**
```groovy
dependencies {
implementation 'com.github.goodforgod:dummymaker:3.1.0'
implementation 'com.github.goodforgod:dummymaker:3.1.1'
}
```

Expand All @@ -27,7 +27,7 @@ dependencies {
<dependency>
<groupId>com.github.goodforgod</groupId>
<artifactId>dummymaker</artifactId>
<version>3.1.0</version>
<version>3.1.1</version>
</dependency>
```

Expand Down
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id "java-library"

id "org.sonarqube" version "3.3"
id "com.diffplug.spotless" version "5.14.3"
id "com.diffplug.spotless" version "6.1.0"
}

group = groupId
Expand All @@ -18,7 +18,7 @@ spotless {
encoding("UTF-8")
importOrder()
removeUnusedImports()
eclipse().configFile("${projectDir}/config/codestyle.xml")
eclipse("4.21.0").configFile("${projectDir}/config/codestyle.xml")
}
}

Expand All @@ -40,7 +40,7 @@ dependencies {
implementation "org.slf4j:slf4j-api:1.7.32"
implementation "javax.inject:javax.inject:1"

testRuntimeOnly "ch.qos.logback:logback-classic:1.2.7"
testRuntimeOnly "ch.qos.logback:logback-classic:1.2.10"
testImplementation "junit:junit:4.13.2"
}

Expand Down
368 changes: 205 additions & 163 deletions config/codestyle.xml

Large diffs are not rendered by default.

9 changes: 7 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
groupId=com.github.goodforgod
artifactId=dummymaker
artifactVersion=3.1.0
artifactVersion=3.1.1


##### GRADLE #####
org.gradle.daemon=true
org.gradle.parallel=true
org.gradle.configureondemand=true
org.gradle.caching=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8
org.gradle.jvmargs=-Dfile.encoding=UTF-8 \
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED \
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit b11c4dd

Please sign in to comment.