< prev index next >

build.gradle

Print this page

 26     id 'org.openjdk.skara.gradle.version'
 27     id 'org.openjdk.skara.gradle.reproduce'
 28 }
 29 
 30 configure(subprojects.findAll() { it.name != 'bots' }) {
 31     apply plugin: 'java-library'
 32     apply plugin: 'maven-publish'
 33     apply plugin: 'org.openjdk.skara.gradle.module'
 34     apply plugin: 'org.openjdk.skara.gradle.version'
 35 
 36     group = 'org.openjdk.skara'
 37 
 38     repositories {
 39         mavenLocal()
 40         maven {
 41             url System.getProperty('maven.url', 'https://repo.maven.apache.org/maven2/')
 42         }
 43     }
 44 
 45     dependencies {
 46         testImplementation 'org.junit.jupiter:junit-jupiter-api:5.3.1'
 47         testImplementation 'org.junit.jupiter:junit-jupiter-params:5.3.1'
 48         testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.3.1'



 49     }
 50 
 51     test {
 52         useJUnitPlatform()
 53 
 54         if (findProperty('credentials')) {
 55             systemProperty "credentials", findProperty('credentials')
 56         }
 57 
 58         testLogging {
 59             events "passed", "skipped", "failed"
 60         }
 61     }
 62 
 63     publishing {
 64         repositories {
 65             maven {
 66                 url = findProperty('mavenRepositoryUrl')
 67                 credentials {
 68                     username = findProperty('mavenRepositoryUser')

 26     id 'org.openjdk.skara.gradle.version'
 27     id 'org.openjdk.skara.gradle.reproduce'
 28 }
 29 
 30 configure(subprojects.findAll() { it.name != 'bots' }) {
 31     apply plugin: 'java-library'
 32     apply plugin: 'maven-publish'
 33     apply plugin: 'org.openjdk.skara.gradle.module'
 34     apply plugin: 'org.openjdk.skara.gradle.version'
 35 
 36     group = 'org.openjdk.skara'
 37 
 38     repositories {
 39         mavenLocal()
 40         maven {
 41             url System.getProperty('maven.url', 'https://repo.maven.apache.org/maven2/')
 42         }
 43     }
 44 
 45     dependencies {
 46         testImplementation 'org.junit.jupiter:junit-jupiter-api:5.5.1'
 47         testImplementation 'org.junit.jupiter:junit-jupiter-params:5.5.1'
 48         testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.5.1'
 49         // Force Gradle to load the JUnit Platform Launcher from the module-path, as
 50         // configured in buildSrc/.../ModulePlugin.java -- see SKARA-69 for details.
 51         testRuntimeOnly 'org.junit.platform:junit-platform-launcher:1.5.1'
 52     }
 53 
 54     test {
 55         useJUnitPlatform()
 56 
 57         if (findProperty('credentials')) {
 58             systemProperty "credentials", findProperty('credentials')
 59         }
 60 
 61         testLogging {
 62             events "passed", "skipped", "failed"
 63         }
 64     }
 65 
 66     publishing {
 67         repositories {
 68             maven {
 69                 url = findProperty('mavenRepositoryUrl')
 70                 credentials {
 71                     username = findProperty('mavenRepositoryUser')
< prev index next >