Skip to content

Commit 627abad

Browse files
author
Rick
authored
Merge pull request #2 from TESTARtool/features/406-Pipeline
Features/406 pipeline
2 parents dea008f + d410d21 commit 627abad

File tree

4 files changed

+44
-2
lines changed

4 files changed

+44
-2
lines changed

.github/workflows/pipeline.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
3+
4+
name: Java CI with Gradle
5+
6+
on:
7+
push:
8+
branches: [ main ]
9+
pull_request:
10+
branches: [ main ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK 11
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: '11'
23+
distribution: 'adopt'
24+
cache: gradle
25+
- name: Grant execute permission for gradlew
26+
run: chmod +x gradlew
27+
- name: Build with Gradle
28+
run: ./gradlew build
29+
- uses: actions/upload-artifact@v2
30+
with:
31+
name: Package
32+
path: build/libs

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# TESTAR Model Difference
2+
[![Java CI with Gradle](https://github.com/TESTARtool/Model-Difference/actions/workflows/pipeline.yml/badge.svg)](https://github.com/TESTARtool/Model-Difference/actions/workflows/pipeline.yml)
23
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
34

45
TESTAR tool repository that contains the State Model Difference feature

build.gradle

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ plugins {
44
}
55

66
group 'nl.ou.testar'
7-
version '0.1.0-init'
7+
version '1.0.0'
88

99
repositories {
1010
mavenCentral()
@@ -26,6 +26,15 @@ test {
2626
useJUnitPlatform()
2727
}
2828

29+
jar {
30+
manifest {
31+
attributes 'Main-Class': 'Program'
32+
}
33+
from {
34+
configurations.runtimeClasspath.collect {it.isDirectory() ? it: zipTree(it)}
35+
}
36+
}
37+
2938
sonarqube {
3039
properties {
3140
property "sonar.projectKey", "model-difference"

src/main/java/Main.java renamed to src/main/java/Program.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.logging.Level;
1919
import java.util.logging.Logger;
2020

21-
public class Main {
21+
public class Program {
2222

2323
public static void main(String[] args) {
2424

0 commit comments

Comments
 (0)