mirror of
https://github.com/status-im/evmc.git
synced 2025-02-24 00:48:09 +00:00
41 lines
1.1 KiB
Groovy
41 lines
1.1 KiB
Groovy
|
plugins {
|
||
|
id 'com.diffplug.gradle.spotless' version '3.16.0'
|
||
|
}
|
||
|
apply from: "${rootDir}/wrapper.gradle"
|
||
|
allprojects {
|
||
|
apply plugin: 'java-library'
|
||
|
repositories {
|
||
|
google()
|
||
|
jcenter()
|
||
|
mavenCentral()
|
||
|
}
|
||
|
sourceCompatibility = '11'
|
||
|
targetCompatibility = '11'
|
||
|
apply plugin: 'com.diffplug.gradle.spotless'
|
||
|
spotless {
|
||
|
java {
|
||
|
// This path needs to be relative to each project
|
||
|
target fileTree('.') {
|
||
|
include '**/*.java'
|
||
|
exclude '**/.gradle/**'
|
||
|
}
|
||
|
importOrder 'org.ethereum', 'java', ''
|
||
|
trimTrailingWhitespace()
|
||
|
endWithNewline()
|
||
|
googleJavaFormat('1.7')
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
subprojects {
|
||
|
tasks.withType(Test) {
|
||
|
testLogging.showStandardStreams = true
|
||
|
// If GRADLE_MAX_TEST_FORKS is not set, use half the available processors
|
||
|
maxParallelForks = (System.getenv('GRADLE_MAX_TEST_FORKS') ?: (Runtime.runtime.availableProcessors().intdiv(2) ?: 1)).toInteger()
|
||
|
useJUnitPlatform()
|
||
|
reports {
|
||
|
junitXml.enabled = true
|
||
|
}
|
||
|
}
|
||
|
}
|