Skip to content
Snippets Groups Projects
Select Git revision
  • f4cc147e7ae650aee325a54f0a2ba4624dcc9218
  • main default protected
  • 1-fix-assignment-errors
  • testsfail
4 results

build.gradle

Blame
  • build.gradle 1.04 KiB
    buildscript {
        repositories {
            maven { url 'https://hopper.une.edu.au/artifactory/libs-release/' }
            mavenCentral()
        }
    }
    
    plugins {
        id 'application'
    }
    
    group 'org.example'
    version '1.0-SNAPSHOT'
    
    
    repositories {
        maven { url 'https://hopper.une.edu.au/artifactory/libs-release/' }
        mavenCentral()
    }
    
    dependencies {
        // Log4J does logging. We'll meet it properly in a later week...
        implementation 'org.apache.logging.log4j:log4j-api:2.18.0'
        implementation 'org.apache.logging.log4j:log4j-core:2.18.0'
    
        testImplementation 'org.junit.jupiter:junit-jupiter-api:5.7.0'
        testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
    }
    
    test {
        useJUnitPlatform()
    }
    
    application {
        mainClass = 'dotsandboxes.Main'
    }
    
    task fatJar(type: Jar) {
        manifest {
            attributes 'Main-Class': 'dotsandboxes.Main'
        }
        archiveBaseName = 'executable-jar'
        duplicatesStrategy = DuplicatesStrategy.EXCLUDE
        from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
        with jar
    }