Skip to content

Commit

Permalink
Build updates
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Mar 1, 2021
1 parent 61fbf3b commit 5692e8c
Show file tree
Hide file tree
Showing 21 changed files with 86 additions and 103 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
patreon: aalmiray
github: aalmiray
35 changes: 28 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,21 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2013-2021 Andres Almiray
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

name: Build

on: [push, pull_request]
Expand All @@ -9,23 +27,26 @@ jobs:
env:
CI: true
steps:
- uses: actions/checkout@v1
- uses: actions/[email protected]

- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v1.4.3
with:
java-version: 1.8
- uses: actions/cache@v1

- uses: actions/[email protected]
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-cache-${{ hashFiles('**/*.gradle') }}-${{ hashFiles('**/gradle.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- uses: actions/cache@v1
- uses: actions/[email protected]
with:
path: ~/.gradle/wrapper
key: ${{ runner.os }}-gradle-wrapper-${{ hashFiles('**/gradlew') }}
restore-keys: |
${{ runner.os }}-gradlew-
- uses: eskatos/gradle-command-action@v1
with:
arguments: build -S
- name: Build
run: ./gradlew build -S
21 changes: 0 additions & 21 deletions .travis.yml

This file was deleted.

17 changes: 6 additions & 11 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,14 @@
:author: Andres Almiray
:linkattrs:
:project-owner: kordamp
:project-repo: maven
:project-name: gipsy
:project-group: org.kordamp.gipsy
:project-version: 0.6.0
:project-version: 1.0.0

image::media/gipsy-logo.png[]

image:http://img.shields.io/travis/{project-owner}/{project-name}/master.svg["Build Status (travis)", link="https://travis-ci.org/{project-owner}/{project-name}"]
image:https://github.com/{project-owner}/{project-name}/workflows/Build/badge.svg["Build Status", link="https://github.com/{project-owner}/{project-name}/actions"]
image:http://img.shields.io/badge/license-ASL2-blue.svg["ASL2 Licensed", link="http://opensource.org/licenses/ASL2"]
image:https://api.bintray.com/packages/{project-owner}/{project-repo}/{project-name}/images/download.svg[link="https://bintray.com/{project-owner}/{project-repo}/{project-name}/_latestVersion"]
image:https://img.shields.io/maven-central/v/{project-group}/{project-name}.svg[Download, link="https://search.maven.org/#search|ga|1|{project-name}"]
image:https://img.shields.io/badge/donations-Patreon-orange.svg[link="https://www.patreon.com/user?u=6609318"]
image:https://img.shields.io/maven-central/v/{project-group}/{project-name}.svg[Download, link="https://search.maven.org/#search|ga|1|g:{project-group}"]

---

Expand Down Expand Up @@ -53,7 +48,7 @@ A basic implementation of such service may be as follows
----
package com.acme
@org.kordamp.jipsy.ServiceProviderFor(Calculator)
@org.kordamp.jipsy.annotations.ServiceProviderFor(Calculator)
class BasicCalculator implements Calculator {
double add(double a, double b) { a + b }
}
Expand All @@ -76,8 +71,8 @@ Et voilà! There are no additional sources to be touched nor files to be created

Gipsy requires the following dependencies

- jipsy-{version}
- groovy-all-2.5.6
- jipsy-processor-{version}
- groovy-all-3.0.7

Gipsy can be downloaded directly from https://bintray.com/kordamp/kordamp/gipsy[Bintray] or configure it via Maven or Gradle.

Expand All @@ -97,7 +92,7 @@ Gipsy can be downloaded directly from https://bintray.com/kordamp/kordamp/gipsy[
----
dependencies {
annotationProcessor '{project-group}:{project-name}:{version}'
compileOnly '{project-group}:{project-name}:{version}'
compileOnly 'org.kordamp.jipsy:jipsy-annotations:{version}'
}
----

Expand Down
19 changes: 9 additions & 10 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -59,21 +59,20 @@ idea {
}
}

repositories {
mavenLocal()
}

dependencies {
api "org.kordamp.jipsy:jipsy:${project.version}"
api "org.kordamp.jipsy:jipsy-processor:${project.version}"
annotationProcessor "org.kordamp.jipsy:jipsy-processor:${project.version}"
compileOnly "org.codehaus.groovy:groovy:${groovyVersion}"
testImplementation "org.codehaus.groovy:groovy:${groovyVersion}"
testImplementation 'junit:junit:4.13'
testImplementation 'junit:junit:4.13.2'
}

compileJava {
doFirst {
options.compilerArgs = ['-proc:none']
}
}

jar {
manifest {
attributes('Automatic-Module-Name': 'org.kordamp.gipsy')
}
}
}
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# SPDX-License-Identifier: Apache-2.0
#
# Copyright 2013-2020 Andres Almiray
# Copyright 2013-2021 Andres Almiray
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -16,14 +16,14 @@
# limitations under the License.
#

version = 0.6.0
version = 1.0.0
group = org.kordamp.gipsy
groovyVersion = 2.5.11
groovyVersion = 3.0.7

sourceCompatibility = 1.8
targetCompatibility = 1.8
kordampPluginVersion = 0.34.0
kordampBuildVersion = 1.0.0
kordampPluginVersion = 0.44.0
kordampBuildVersion = 2.3.0
gitPluginVersion = 2.1.3

org.gradle.daemon = true
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.3-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 2 additions & 0 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ esac

CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar


# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
Expand Down Expand Up @@ -129,6 +130,7 @@ fi
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`

JAVACMD=`cygpath --unix "$JAVACMD"`

# We build the pattern for arguments to be converted via cygpath
Expand Down
22 changes: 4 additions & 18 deletions gradlew.bat
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome

set JAVA_EXE=java.exe
%JAVA_EXE% -version >NUL 2>&1
if "%ERRORLEVEL%" == "0" goto init
if "%ERRORLEVEL%" == "0" goto execute

echo.
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Expand All @@ -54,7 +54,7 @@ goto fail
set JAVA_HOME=%JAVA_HOME:"=%
set JAVA_EXE=%JAVA_HOME%/bin/java.exe

if exist "%JAVA_EXE%" goto init
if exist "%JAVA_EXE%" goto execute

echo.
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
Expand All @@ -64,28 +64,14 @@ echo location of your Java installation.

goto fail

:init
@rem Get command-line arguments, handling Windows variants

if not "%OS%" == "Windows_NT" goto win9xME_args

:win9xME_args
@rem Slurp the command line arguments.
set CMD_LINE_ARGS=
set _SKIP=2

:win9xME_args_slurp
if "x%~1" == "x" goto execute

set CMD_LINE_ARGS=%*

:execute
@rem Setup the command line

set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar


@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*

:end
@rem End local scope for the variables with windows NT shell
Expand Down
6 changes: 3 additions & 3 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -17,16 +17,16 @@
*/
pluginManagement {
repositories {
jcenter()
gradlePluginPortal()
mavenCentral()
mavenLocal()
}
}

buildscript {
repositories {
gradlePluginPortal()
jcenter()
mavenCentral()
mavenLocal()
}
dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
*
* Copyright 2013-2020 Andres Almiray
* Copyright 2013-2021 Andres Almiray
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 5692e8c

Please sign in to comment.