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

plugins {
    id 'java'
    id 'maven-publish'
    id 'com.github.hierynomus.license' version '0.16.1'
}

repositories {
    mavenCentral()
    mavenLocal()
    maven {
        url = 'https://dl.bintray.com/jai-imageio/maven/'
    }

    maven {
        url = 'https://repo.maven.apache.org/maven2'
    }
}

dependencies {
    implementation 'com.github.jai-imageio:jai-imageio-core:1.4.0'
    testImplementation 'junit:junit:4.12'
}

group = 'com.github.jai-imageio'
version = '1.3.1-dicomadapter'
description = 'JPEG2000 support for Java Advanced Imaging Image I/O Tools API'
sourceCompatibility = '1.6'

task sourcesJar(type: Jar) {
    classifier = 'sources'
    from(sourceSets.main.allJava)
}

task testsJar(type: Jar) {
    classifier = 'tests'
    from(sourceSets.test.output)
}

task javadocJar(type: Jar) {
    classifier = 'javadoc'
    from(javadoc.destinationDir)
}

publishing {
    publications {
        maven(MavenPublication) {
            from(components.java)
            artifact(sourcesJar)
            artifact(testsJar)
            artifact(javadocJar)
        }
    }
}

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