/*
 * This file was generated by the Gradle 'init' task.
 */

plugins {
    // uberjar/shadowJar config
    id 'com.github.johnrengelman.shadow' version '6.1.0'

    id 'application'
    id 'java'
    id 'maven-publish'
}

repositories {
    mavenLocal()
    mavenCentral()
    maven {
        url = uri('https://repo.jenkins-ci.org/public/')
    }

    maven {
        url = uri('http://repo.maven.apache.org/maven2')
    }
}

// ------------------------------------------------------------
// Gradle 6.5
// ------------------------------------------------------------

// Build time:   2020-06-02 20:46:21 UTC
// Revision:     a27f41e4ae5e8a41ab9b19f8dd6d86d7b384dad4

// Kotlin:       1.3.72
// Groovy:       2.5.11
// Ant:          Apache Ant(TM) version 1.10.7 compiled on September 1 2019

dependencies {
    implementation('com.deepnetts:deepnetts-core:1.12@pom') {}
}

group = 'org.neomatrix369.deepnetts'
version = '1.0'
description = 'deepnetts-machine'
sourceCompatibility = '11'
mainClassName = group + '.DeepNettsMachine'

jar {
    manifest {
        attributes 'Implementation-Title': 'DeepNetts Machine',
                'Implementation-Version': version,
                'Built-By': System.getProperty('user.name'),
                'Built-Date': new Date(),
                'Built-JDK': System.getProperty('java.version'),
                'Main-Class': '${mainClassName}'
    }
    from {
        configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
    }
}

// uberjar/shadowJar config
shadowJar {
    archiveClassifier.set('with-dependencies')
}

publishing {
    publications {
        maven(MavenPublication) {
            from(components.java)
        }
    }
}

tasks.withType(JavaCompile) {
    options.encoding = 'UTF-8'
}