Skip to content
Snippets Groups Projects
build.gradle 1014 B
plugins {
    id 'maven-publish'
    id 'java-gradle-plugin'
}

group 'org.jastadd.relast'
version '0.2'

gradlePlugin {
    plugins {
        simplePlugin {
            id = 'org.jastadd.relast'
            implementationClass = 'org.jastadd.relast.plugin.RelastPlugin'
        }
    }
}

//830
publishing {
    repositories {
        maven {
            url "https://git-st.inf.tu-dresden.de/api/v4/projects/830/packages/maven"
            // Uncomment the following lines to publish manually (and comment out the other credentials section)
//            credentials(HttpHeaderCredentials) {
//                name = "Private-Token"
//                value = gitLabPrivateToken // the variable resides in ~/.gradle/gradle.properties
//            }
            credentials(HttpHeaderCredentials) {
                name = 'Job-Token'
                value = System.getenv("CI_JOB_TOKEN")
            }
            authentication {
                header(HttpHeaderAuthentication)
            }
        }

    }
}