mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-26 14:22:05 +01:00
Merge pull request #412 from msfjarvis/pgpainless2
build: add ktfmt via Spotless
This commit is contained in:
commit
633048fd2a
1 changed files with 8 additions and 0 deletions
|
@ -19,6 +19,7 @@ buildscript {
|
||||||
|
|
||||||
plugins {
|
plugins {
|
||||||
id 'org.jetbrains.kotlin.jvm' version "1.8.10"
|
id 'org.jetbrains.kotlin.jvm' version "1.8.10"
|
||||||
|
id 'com.diffplug.spotless' version '6.22.0' apply false
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: 'version.gradle'
|
apply from: 'version.gradle'
|
||||||
|
@ -30,6 +31,7 @@ allprojects {
|
||||||
apply plugin: 'jacoco'
|
apply plugin: 'jacoco'
|
||||||
apply plugin: 'checkstyle'
|
apply plugin: 'checkstyle'
|
||||||
apply plugin: 'kotlin'
|
apply plugin: 'kotlin'
|
||||||
|
apply plugin: 'com.diffplug.spotless'
|
||||||
|
|
||||||
compileJava {
|
compileJava {
|
||||||
options.release = 8
|
options.release = 8
|
||||||
|
@ -47,6 +49,12 @@ allprojects {
|
||||||
toolVersion = '10.12.1'
|
toolVersion = '10.12.1'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
spotless {
|
||||||
|
kotlin {
|
||||||
|
ktfmt().dropboxStyle()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
group 'org.pgpainless'
|
group 'org.pgpainless'
|
||||||
description = "Simple to use OpenPGP API for Java based on Bouncycastle"
|
description = "Simple to use OpenPGP API for Java based on Bouncycastle"
|
||||||
version = shortVersion
|
version = shortVersion
|
||||||
|
|
Loading…
Reference in a new issue