cordapi / gradle-scripts

Common gradle scripts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gradle Scripts

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

Credits

This project is a fork of gradle-scripts, a repo kindly shared by Tomas Bjerre to make others smile.

About

Common gradle scripts