Skip to content
Snippets Groups Projects
Select Git revision
  • master
1 result

routes

Blame
  • Forked from cosc360-2016 / project-base
    Source project has a limited visibility.
    build.gradle 1.03 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'
        }
        baseName = 'executable-jar'
        duplicatesStrategy = DuplicatesStrategy.EXCLUDE
        from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
        with jar
    }