1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-22 20:32:05 +01:00

Merge pull request #412 from msfjarvis/pgpainless2

build: add ktfmt via Spotless
This commit is contained in:
Paul Schaub 2023-10-23 14:22:49 +02:00 committed by GitHub
commit 633048fd2a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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