This is a collection of gradle scripts used in other cordapi projects.
Applying them via a Maven repository means:
- The scripts will be cached. Not downloaded for every build, making them faster, and builds can be performed when offline.
- Versions can be released and managed in branches.
apply plugin: 'java'
project.ext.tags = ['tag1', 'tag2']
group = 'se.bjurr.x'
description = 'Library for ...'
buildscript {
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
classpath 'com.github.cordapi:gradle-scripts:master-SNAPSHOT'
}
}
apply from: project.buildscript.classLoader.getResource('java.gradle').toURI()
apply from: project.buildscript.classLoader.getResource('kotlin.gradle').toURI()
apply from: project.buildscript.classLoader.getResource('changelog.gradle').toURI()
apply from: project.buildscript.classLoader.getResource('release.gradle').toURI()
apply from: project.buildscript.classLoader.getResource('gradle-plugin.gradle').toURI()
Jitpack can be slow but you can increase the timeouts like this:
./gradlew build -Dhttp.socketTimeout=60000 -Dhttp.connectionTimeout=60000
This project is a fork of gradle-scripts, a repo kindly shared by Tomas Bjerre to make others smile.