Skip to content

Commit

Permalink
switch to gradle (#4)
Browse files Browse the repository at this point in the history
* switch to gradle

* Refactor gradle build by:
- configure common dependencies
- rename subprojects to use 'logback-' as prefix
- apply license headers to all source files
  • Loading branch information
wsargent committed Mar 3, 2019
1 parent bf9e461 commit 8d5cb77
Show file tree
Hide file tree
Showing 109 changed files with 1,159 additions and 582 deletions.
24 changes: 5 additions & 19 deletions .gitignore
@@ -1,22 +1,8 @@
# Created by .ignore support plugin (hsz.mobi)
### SBT template
# Simple Build Tool
# http://www.scala-sbt.org/release/docs/Getting-Started/Directories.html#configuring-version-control
# Ignore Gradle project-specific cache directory
.gradle

.idea

log
release.properties
*.releaseBackup

*.iml
dist/*
# Ignore Gradle build output directory
build
target/
lib_managed/
src_managed/
project/boot/
project/plugins/project/
.history
.cache
.lib/

.idea
84 changes: 84 additions & 0 deletions build.gradle
@@ -0,0 +1,84 @@
plugins {
// http://andresalmiray.com/an-opinionated-way-to-build-gradle-projects/
// https://aalmiray.github.io/kordamp-gradle-plugins/#_project_structure
id 'org.kordamp.gradle.project' version '0.14.0'
id 'org.kordamp.gradle.bintray' version '0.14.0'
id 'com.gradle.build-scan' version '2.2.1'
}

if (!project.hasProperty('bintrayUsername')) ext.bintrayUsername = ''
if (!project.hasProperty('bintrayApiKey')) ext.bintrayApiKey = ''

config {
release = (rootProject.findProperty('release') ?: false).toBoolean()

info {
name = rootProject.name
vendor = 'tersesystems'
description = 'Terse Logback'
inceptionYear = '2018'
tags = ['logging', 'logback']

links {
website = "https://github.com/tersesystem/${rootProject.name}"
issueTracker = "https://github.com/tersesystem/${rootProject.name}/issues"
scm = "https://github.com/tersesystem/${rootProject.name}.git"
}

people {
person {
id = 'wsargent'
name = 'Will Sargent'
roles = ['developer']
}
}
}

license {
licenses {
license {
id = 'CC0-1.0'
}
}
}

bintray {
credentials {
// http://andresalmiray.com/gaining-insight-into-a-gradle-build/
username = project.bintrayUsername
password = project.bintrayApiKey
}
userOrg = 'tersesystems'
name = rootProject.name
}
}

allprojects {
apply plugin: 'idea'

repositories {
jcenter()
}
}

subprojects {
apply plugin: 'java'

config {
info {
description = project.project_description
}
}

dependencies {
testCompile 'org.assertj:assertj-core:3.8.0'
testCompile "junit:junit:$junitVersion"
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
testCompile "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
testCompile "org.junit.vintage:junit-vintage-engine:$junitVintageVersion"
}

test {
useJUnitPlatform()
}
}
41 changes: 0 additions & 41 deletions bytebuddy/pom.xml

This file was deleted.

37 changes: 0 additions & 37 deletions censor/pom.xml

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions classic/pom.xml

This file was deleted.

4 changes: 0 additions & 4 deletions classic/src/main/resources/logging.properties

This file was deleted.

This file was deleted.

27 changes: 0 additions & 27 deletions context/pom.xml

This file was deleted.

This file was deleted.

57 changes: 0 additions & 57 deletions core/pom.xml

This file was deleted.

9 changes: 9 additions & 0 deletions gradle.properties
@@ -0,0 +1,9 @@
version = 0.0.0
group = com.tersesystems.logback

bytebuddyVersion = 1.9.9
junitVersion = 4.12
junitJupiterVersion = 5.0.1
junitVintageVersion = 4.12.1
junitPlatformVersion = 1.0.1
slf4jVersion = 1.7.25
9 changes: 9 additions & 0 deletions gradle/LICENSE_HEADER
@@ -0,0 +1,9 @@
SPDX-License-Identifier: CC0-1.0

Copyright ${copyrightYear} ${author}.

Licensed under the CC0 Public Domain Dedication;
You may obtain a copy of the License at

http://creativecommons.org/publicdomain/zero/1.0/

Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
5 changes: 5 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit 8d5cb77

Please sign in to comment.