Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/pipeline.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle

name: Java CI with Gradle

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build with Gradle
run: ./gradlew build
- uses: actions/upload-artifact@v2
with:
name: Package
path: build/libs
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# TESTAR Model Difference
[![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)
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)

TESTAR tool repository that contains the State Model Difference feature
11 changes: 10 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'nl.ou.testar'
version '0.1.0-init'
version '1.0.0'

repositories {
mavenCentral()
Expand All @@ -26,6 +26,15 @@ test {
useJUnitPlatform()
}

jar {
manifest {
attributes 'Main-Class': 'Program'
}
from {
configurations.runtimeClasspath.collect {it.isDirectory() ? it: zipTree(it)}
}
}

sonarqube {
properties {
property "sonar.projectKey", "model-difference"
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/Main.java → src/main/java/Program.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import java.util.logging.Level;
import java.util.logging.Logger;

public class Main {
public class Program {

public static void main(String[] args) {

Expand Down