Coder Social home page Coder Social logo

etf-bda's Introduction

ETF build and deployment plugin helper

Latest version

This gradle helper script is used in ETF projects to preconfigure Gradle based Java projects.

The following block must be inserted at the beginning of a build.gradle file:

///////////////////////////////////////////////////////////////////////////////////////

buildscript {
	repositories {
		maven {
			url "https://services.interactive-instruments.de/etfdev-af/plugins-releases-local"
			credentials {
				// Our repository requires authenticating
				username 'ii-bda'
				password 'AP7mb4WA6F1ckdZkaE8Qx8GSowt'
			}}
	}
	dependencies {
		classpath group: 'de.interactive_instruments.bda', name: 'etf-bda', version: '[2.0.0,2.0.99]'
	}
	dependencies {
		ant.unjar src: configurations.classpath.files.find {it.path.contains('etf')}, dest: 'build/gradle'
	}
}
apply from: 'build/gradle/ii-bda.gradle'

///////////////////////////////////////////////////////////////////////////////////////

What it does/configures

  • Sets values in the manifest file, like the build version, current GIT revision, build date, etc.

  • Configures the ii maven repositories for getting dependencies or releasing an artifact (if the project version is suffixed with 'SNAPSHOT' -> snapshot repos will be used)

  • Configures checks and the formatting of the source code

Building projects

Build the project like every other gradle project with:

$ gradlew build

The build will fail if format violations are found:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':spotlessJavaCheck'.
> Format violations were found. Run 'gradlew spotlessApply' to fix them.
	src/main/java/de/whatever.java

These can be formatted by running:

$ gradlew spotlessApply

Release artifacts

You need an interactive instruments account for accessing artifacts in the ii repo. Add your credentials in the ~/.gradle/gradle.properties file:

[email protected]
ii.etfdev.repo.password=password

An artifact can be released by running:

$ gradlew release

Known limitations

  • Project directories must be GIT cloned or initialized otherwise an "unknown repository" error is reported

Used plugins

The following plugins are used:

Breaking changes

etf-bda's People

Contributors

cportele avatar jonherrmann avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.