forked from loafle/openapi-generator-original
[java][Jersey2] add spotless maven, gradle plugins (#10796)
* add bunker-holding logo * add spotless plugin to jersey2 java client * add spotless plugin to java jersey2 client * use jdk11 in gradle tests * fix gradle test local spec * setup java 11 * skip spotless in check task
This commit is contained in:
parent
84c2b04f24
commit
bd1a6471b6
4
.github/workflows/gradle-test.yaml
vendored
4
.github/workflows/gradle-test.yaml
vendored
@ -21,7 +21,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
name: Gradle tests
|
name: Gradle tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: gradle:jdk8
|
container: gradle:jdk11
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
matrix:
|
matrix:
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
- uses: actions/setup-java@v2
|
- uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
java-version: 8
|
java-version: 11
|
||||||
# Cache Gradle Dependencies
|
# Cache Gradle Dependencies
|
||||||
- name: Setup Gradle Dependencies Cache
|
- name: Setup Gradle Dependencies Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
|
@ -589,6 +589,7 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [Bithost GmbH](https://www.bithost.ch)
|
- [Bithost GmbH](https://www.bithost.ch)
|
||||||
- [Bosch Connected Industry](https://www.bosch-connected-industry.com)
|
- [Bosch Connected Industry](https://www.bosch-connected-industry.com)
|
||||||
- [Boxever](https://www.boxever.com/)
|
- [Boxever](https://www.boxever.com/)
|
||||||
|
- [Bunker Holding Group](https://www.bunker-holding.com/)
|
||||||
- [California State University, Northridge](https://www.csun.edu)
|
- [California State University, Northridge](https://www.csun.edu)
|
||||||
- [CAM](https://www.cam-inc.co.jp/)
|
- [CAM](https://www.cam-inc.co.jp/)
|
||||||
- [Camptocamp](https://www.camptocamp.com/en)
|
- [Camptocamp](https://www.camptocamp.com/en)
|
||||||
@ -683,7 +684,6 @@ Here are some companies/projects (alphabetical order) using OpenAPI Generator in
|
|||||||
- [YITU Technology](https://www.yitutech.com/)
|
- [YITU Technology](https://www.yitutech.com/)
|
||||||
- [Yelp](https://www.yelp.com/)
|
- [Yelp](https://www.yelp.com/)
|
||||||
- [Zalando](https://www.zalando.com)
|
- [Zalando](https://www.zalando.com)
|
||||||
- [Bunker Holding Group](https://www.bunker-holding.com/)
|
|
||||||
|
|
||||||
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
|
## [5 - Presentations/Videos/Tutorials/Books](#table-of-contents)
|
||||||
|
|
||||||
|
@ -79,6 +79,7 @@ declare -a xml_files=(
|
|||||||
"${root}/modules/openapi-generator-online/pom.xml"
|
"${root}/modules/openapi-generator-online/pom.xml"
|
||||||
"${root}/modules/openapi-generator/pom.xml"
|
"${root}/modules/openapi-generator/pom.xml"
|
||||||
"${root}/modules/openapi-generator-gradle-plugin/gradle.properties"
|
"${root}/modules/openapi-generator-gradle-plugin/gradle.properties"
|
||||||
|
"${root}/modules/openapi-generator-gradle-plugin/samples/local-spec/gradle.properties"
|
||||||
"${root}/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml"
|
"${root}/modules/openapi-generator-maven-plugin/examples/multi-module/java-client/pom.xml"
|
||||||
"${root}/modules/openapi-generator-maven-plugin/examples/java-client.xml"
|
"${root}/modules/openapi-generator-maven-plugin/examples/java-client.xml"
|
||||||
"${root}/modules/openapi-generator-maven-plugin/examples/non-java-invalid-spec.xml"
|
"${root}/modules/openapi-generator-maven-plugin/examples/non-java-invalid-spec.xml"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# RELEASE_VERSION
|
# RELEASE_VERSION
|
||||||
openApiGeneratorVersion=5.3.0-SNAPSHOT
|
openApiGeneratorVersion=5.3.1-SNAPSHOT
|
||||||
# /RELEASE_VERSION
|
# /RELEASE_VERSION
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = '{{groupId}}'
|
group = '{{groupId}}'
|
||||||
version = '{{artifactVersion}}'
|
version = '{{artifactVersion}}'
|
||||||
@ -11,6 +12,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -167,3 +169,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
// comment out below to run spotless as part of the `check` task
|
||||||
|
enforceCheck false
|
||||||
|
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -190,6 +190,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<spaces>true</spaces> <!-- or <tabs>true</tabs> -->
|
||||||
|
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -366,5 +406,6 @@
|
|||||||
{{#hasOAuthMethods}}
|
{{#hasOAuthMethods}}
|
||||||
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
||||||
{{/hasOAuthMethods}}
|
{{/hasOAuthMethods}}
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -11,6 +12,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,3 +129,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
// comment out below to run spotless as part of the `check` task
|
||||||
|
enforceCheck false
|
||||||
|
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -183,6 +183,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<spaces>true</spaces> <!-- or <tabs>true</tabs> -->
|
||||||
|
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -306,5 +346,6 @@
|
|||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -11,6 +12,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,3 +129,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
// comment out below to run spotless as part of the `check` task
|
||||||
|
enforceCheck false
|
||||||
|
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -183,6 +183,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<spaces>true</spaces> <!-- or <tabs>true</tabs> -->
|
||||||
|
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -306,5 +346,6 @@
|
|||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -11,6 +12,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -127,3 +129,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
// comment out below to run spotless as part of the `check` task
|
||||||
|
enforceCheck false
|
||||||
|
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -183,6 +183,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<spaces>true</spaces> <!-- or <tabs>true</tabs> -->
|
||||||
|
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -306,5 +346,6 @@
|
|||||||
<threetenbp-version>2.9.10</threetenbp-version>
|
<threetenbp-version>2.9.10</threetenbp-version>
|
||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -11,6 +12,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -125,3 +127,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
// comment out below to run spotless as part of the `check` task
|
||||||
|
enforceCheck false
|
||||||
|
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -183,6 +183,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<spaces>true</spaces> <!-- or <tabs>true</tabs> -->
|
||||||
|
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -300,5 +340,6 @@
|
|||||||
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
|
||||||
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
<jakarta-annotation-version>1.3.5</jakarta-annotation-version>
|
||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
apply plugin: 'idea'
|
apply plugin: 'idea'
|
||||||
apply plugin: 'eclipse'
|
apply plugin: 'eclipse'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
group = 'org.openapitools'
|
group = 'org.openapitools'
|
||||||
version = '1.0.0'
|
version = '1.0.0'
|
||||||
@ -11,6 +12,7 @@ buildscript {
|
|||||||
dependencies {
|
dependencies {
|
||||||
classpath 'com.android.tools.build:gradle:2.3.+'
|
classpath 'com.android.tools.build:gradle:2.3.+'
|
||||||
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
|
||||||
|
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -129,3 +131,27 @@ dependencies {
|
|||||||
javadoc {
|
javadoc {
|
||||||
options.tags = [ "http.response.details:a:Http Response Details" ]
|
options.tags = [ "http.response.details:a:Http Response Details" ]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
// To apply changes directly to the file, run `gradlew spotlessApply`
|
||||||
|
// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle
|
||||||
|
spotless {
|
||||||
|
// comment out below to run spotless as part of the `check` task
|
||||||
|
enforceCheck false
|
||||||
|
|
||||||
|
format 'misc', {
|
||||||
|
// define the files (e.g. '*.gradle', '*.md') to apply `misc` to
|
||||||
|
target '.gitignore'
|
||||||
|
// define the steps to apply to those files
|
||||||
|
trimTrailingWhitespace()
|
||||||
|
indentWithSpaces() // Takes an integer argument if you don't like 4
|
||||||
|
endWithNewline()
|
||||||
|
}
|
||||||
|
java {
|
||||||
|
// don't need to set target, it is inferred from java
|
||||||
|
// apply a specific flavor of google-java-format
|
||||||
|
googleJavaFormat('1.8').aosp().reflowLongStrings()
|
||||||
|
removeUnusedImports()
|
||||||
|
importOrder()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -183,6 +183,46 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<!-- Use spotless plugin to automatically format code, remove unused import, etc
|
||||||
|
To apply changes directly to the file, run `mvn spotless:apply`
|
||||||
|
Ref: https://github.com/diffplug/spotless/tree/main/plugin-maven
|
||||||
|
-->
|
||||||
|
<plugin>
|
||||||
|
<groupId>com.diffplug.spotless</groupId>
|
||||||
|
<artifactId>spotless-maven-plugin</artifactId>
|
||||||
|
<version>${spotless.version}</version>
|
||||||
|
<configuration>
|
||||||
|
<formats>
|
||||||
|
<!-- you can define as many formats as you want, each is independent -->
|
||||||
|
<format>
|
||||||
|
<!-- define the files to apply to -->
|
||||||
|
<includes>
|
||||||
|
<include>.gitignore</include>
|
||||||
|
</includes>
|
||||||
|
<!-- define the steps to apply to those files -->
|
||||||
|
<trimTrailingWhitespace/>
|
||||||
|
<endWithNewline/>
|
||||||
|
<indent>
|
||||||
|
<spaces>true</spaces> <!-- or <tabs>true</tabs> -->
|
||||||
|
<spacesPerTab>4</spacesPerTab> <!-- optional, default is 4 -->
|
||||||
|
</indent>
|
||||||
|
</format>
|
||||||
|
</formats>
|
||||||
|
<!-- define a language-specific format -->
|
||||||
|
<java>
|
||||||
|
<!-- no need to specify files, inferred automatically, but you can if you want -->
|
||||||
|
|
||||||
|
<!-- apply a specific flavor of google-java-format and reflow long strings -->
|
||||||
|
<googleJavaFormat>
|
||||||
|
<version>1.8</version>
|
||||||
|
<style>AOSP</style>
|
||||||
|
<reflowLongStrings>true</reflowLongStrings>
|
||||||
|
</googleJavaFormat>
|
||||||
|
<removeUnusedImports/>
|
||||||
|
<importOrder/>
|
||||||
|
</java>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
@ -312,5 +352,6 @@
|
|||||||
<junit-version>4.13.2</junit-version>
|
<junit-version>4.13.2</junit-version>
|
||||||
<http-signature-version>1.7</http-signature-version>
|
<http-signature-version>1.7</http-signature-version>
|
||||||
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
<scribejava-apis-version>8.3.1</scribejava-apis-version>
|
||||||
|
<spotless.version>2.17.3</spotless.version>
|
||||||
</properties>
|
</properties>
|
||||||
</project>
|
</project>
|
||||||
|
@ -73,6 +73,11 @@
|
|||||||
image: "img/companies/boxever.svg"
|
image: "img/companies/boxever.svg"
|
||||||
infoLink: "https://www.boxever.com/"
|
infoLink: "https://www.boxever.com/"
|
||||||
pinned: false
|
pinned: false
|
||||||
|
-
|
||||||
|
caption: Bunker Holding Group
|
||||||
|
image: "img/companies/bunker-holding.png"
|
||||||
|
infoLink: "https://www.bunker-holding.com/"
|
||||||
|
pinned: false
|
||||||
-
|
-
|
||||||
caption: "California State University, Northridge"
|
caption: "California State University, Northridge"
|
||||||
image: "img/companies/CSUNS.png"
|
image: "img/companies/CSUNS.png"
|
||||||
|
BIN
website/static/img/companies/bunker-holding.png
Normal file
BIN
website/static/img/companies/bunker-holding.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.0 KiB |
Loading…
x
Reference in New Issue
Block a user