-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11 from corese-stack/feature/github-actions-gradle
Feature/GitHub actions gradle
- Loading branch information
Showing
12 changed files
with
496 additions
and
429 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# to prevent batch files to be converted. | ||
*.bat text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,37 @@ | ||
name: Continuous Integration process | ||
run-name: ${{ github.actor }} is testing out GitHub Actions | ||
on: [push] | ||
run-name: ${{ github.actor }} has launched CI process on ${{ github.ref_name }} | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
- "develop" | ||
pull_request: | ||
branches: | ||
- "main" | ||
- "develop" | ||
|
||
jobs: | ||
Explore-GitHub-Actions: | ||
Continuous-Integration-Actions: | ||
runs-on: self-hosted | ||
|
||
steps: | ||
- name: maven build | ||
run: | | ||
mamba env update -f conda-env/corese-core.yaml | ||
conda activate corese-core | ||
mvn clean install -DskipTests | ||
shell: bash -l {0} | ||
- name: Checkout of head | ||
id: ci-sources-checkout | ||
uses: actions/checkout@v4 | ||
|
||
- run: echo "This job's status is ${{ job.status }}." | ||
- name: Set up JDK 21 | ||
id: ci-java-setup | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: 21 | ||
distribution: 'temurin' | ||
|
||
- name: Gradle build | ||
id: ci-gradle-build | ||
run: ./gradlew clean publishToMavenLocal | ||
|
||
- name: Final Step | ||
id: ci-final-step | ||
run: | | ||
echo "This job's status is ${{ job.status }}." | ||
find ./build -name '*.jar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,7 @@ __pycache__ | |
.vscode | ||
*.class | ||
.conda | ||
|
||
# maven stuff | ||
target | ||
.gradle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/* | ||
* This file was generated by the Gradle 'init' task. | ||
*/ | ||
|
||
plugins { | ||
`java-library` | ||
`maven-publish` | ||
id("org.gradlex.extra-java-module-info") version "1.8" | ||
} | ||
|
||
repositories { | ||
mavenLocal() | ||
maven { | ||
url = uri("file:///Users/edemairy/Developpement/corese-core/src/main/resources/repo/") | ||
} | ||
|
||
maven { | ||
url = uri("https://repo.maven.apache.org/maven2/") | ||
} | ||
} | ||
|
||
dependencies { | ||
api(libs.org.slf4j.slf4j.api) | ||
api(libs.org.apache.commons.commons.text) | ||
api(libs.fr.com.hp.hpl.jena.rdf.arp.arp) | ||
api(libs.commons.lang.commons.lang) | ||
api(libs.org.json.json) | ||
api(libs.fr.inria.lille.shexjava.shexjava.core) | ||
api(libs.org.glassfish.jersey.core.jersey.client) | ||
api(libs.org.glassfish.jersey.inject.jersey.hk2) | ||
api(libs.javax.xml.bind.jaxb.api) | ||
api(libs.fr.inria.corese.org.semarglproject.semargl.rdfa) | ||
api(libs.fr.inria.corese.org.semarglproject.semargl.core) | ||
api(libs.com.github.jsonld.java.jsonld.java) | ||
runtimeOnly(libs.org.apache.logging.log4j.log4j.slf4j18.impl) | ||
testImplementation(libs.junit.junit) | ||
} | ||
|
||
group = "fr.inria.corese" | ||
version = "4.5.0" | ||
description = "corese-core" | ||
java.sourceCompatibility = JavaVersion.VERSION_11 | ||
|
||
publishing { | ||
publications.create<MavenPublication>("maven") { | ||
from(components["java"]) | ||
} | ||
} | ||
|
||
tasks.withType<JavaCompile>() { | ||
options.encoding = "UTF-8" | ||
} | ||
|
||
tasks.withType<Javadoc>() { | ||
options.encoding = "UTF-8" | ||
} | ||
extraJavaModuleInfo { | ||
failOnMissingModuleInfo.set(false) | ||
automaticModule("arp-2.2.b.jar", "arp") | ||
automaticModule("jsonld-java-0.13.4.jar", "jsonld.java") | ||
automaticModule("commons-lang:commons-lang", "commons.lang") | ||
automaticModule("fr.inria.lille.shexjava:shexjava-core", "shexjava.core") | ||
automaticModule("org.eclipse.rdf4j:rdf4j-model", "rdf4j.model") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
name: corese-core | ||
channels: | ||
- conda-forge | ||
dependencies: | ||
- maven | ||
#dependencies: | ||
# - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# This file was generated by the Gradle 'init' task. | ||
# https://docs.gradle.org/current/userguide/platforms.html#sub::toml-dependencies-format | ||
|
||
[versions] | ||
com-github-jsonld-java-jsonld-java = "0.13.4" | ||
commons-lang-commons-lang = "2.4" | ||
fr-com-hp-hpl-jena-rdf-arp-arp = "2.2.b" | ||
fr-inria-corese-org-semarglproject-semargl-core = "0.7.1" | ||
fr-inria-corese-org-semarglproject-semargl-rdfa = "0.7.1" | ||
fr-inria-lille-shexjava-shexjava-core = "1.0" | ||
javax-xml-bind-jaxb-api = "2.3.1" | ||
junit-junit = "4.13.2" | ||
org-apache-commons-commons-text = "1.10.0" | ||
org-apache-logging-log4j-log4j-slf4j18-impl = "2.18.0" | ||
org-glassfish-jersey-core-jersey-client = "3.0.4" | ||
org-glassfish-jersey-inject-jersey-hk2 = "3.0.4" | ||
org-json-json = "20240303" | ||
org-slf4j-slf4j-api = "1.8.0-beta2" | ||
|
||
[libraries] | ||
com-github-jsonld-java-jsonld-java = { module = "com.github.jsonld-java:jsonld-java", version.ref = "com-github-jsonld-java-jsonld-java" } | ||
commons-lang-commons-lang = { module = "commons-lang:commons-lang", version.ref = "commons-lang-commons-lang" } | ||
fr-com-hp-hpl-jena-rdf-arp-arp = { module = "fr.com.hp.hpl.jena.rdf.arp:arp", version.ref = "fr-com-hp-hpl-jena-rdf-arp-arp" } | ||
fr-inria-corese-org-semarglproject-semargl-core = { module = "fr.inria.corese.org.semarglproject:semargl-core", version.ref = "fr-inria-corese-org-semarglproject-semargl-core" } | ||
fr-inria-corese-org-semarglproject-semargl-rdfa = { module = "fr.inria.corese.org.semarglproject:semargl-rdfa", version.ref = "fr-inria-corese-org-semarglproject-semargl-rdfa" } | ||
fr-inria-lille-shexjava-shexjava-core = { module = "fr.inria.lille.shexjava:shexjava-core", version.ref = "fr-inria-lille-shexjava-shexjava-core" } | ||
javax-xml-bind-jaxb-api = { module = "javax.xml.bind:jaxb-api", version.ref = "javax-xml-bind-jaxb-api" } | ||
junit-junit = { module = "junit:junit", version.ref = "junit-junit" } | ||
org-apache-commons-commons-text = { module = "org.apache.commons:commons-text", version.ref = "org-apache-commons-commons-text" } | ||
org-apache-logging-log4j-log4j-slf4j18-impl = { module = "org.apache.logging.log4j:log4j-slf4j18-impl", version.ref = "org-apache-logging-log4j-log4j-slf4j18-impl" } | ||
org-glassfish-jersey-core-jersey-client = { module = "org.glassfish.jersey.core:jersey-client", version.ref = "org-glassfish-jersey-core-jersey-client" } | ||
org-glassfish-jersey-inject-jersey-hk2 = { module = "org.glassfish.jersey.inject:jersey-hk2", version.ref = "org-glassfish-jersey-inject-jersey-hk2" } | ||
org-json-json = { module = "org.json:json", version.ref = "org-json-json" } | ||
org-slf4j-slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "org-slf4j-slf4j-api" } |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.1-bin.zip | ||
networkTimeout=10000 | ||
validateDistributionUrl=true | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists |
Oops, something went wrong.