diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 903f2431..f2c1165b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,6 +20,8 @@ steps: path: '$(GRADLE_USER_HOME)' restoreKeys: 'gradle' - task: Gradle@2 + env: + ACCESS_TOKEN: $(System.AccessToken) inputs: workingDirectory: '' gradleWrapperFile: 'gradlew' diff --git a/build.gradle b/build.gradle index a6731799..ecf14eef 100644 --- a/build.gradle +++ b/build.gradle @@ -1,20 +1,17 @@ buildscript { repositories { maven { url = 'https://files.minecraftforge.net/maven' } - maven { url = 'https://plugins.gradle.org/m2/' } jcenter() mavenCentral() } dependencies { classpath group: 'net.minecraftforge.gradle', name: 'ForgeGradle', version: '3.+', changing: true - classpath 'net.linguica.gradle:maven-settings-plugin:0.5' } } apply plugin: 'net.minecraftforge.gradle' // Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. apply plugin: 'eclipse' apply plugin: 'maven-publish' -apply plugin: 'net.linguica.maven-settings' version = '20.1' group = 'de.ellpeck.naturesaura' // http://maven.apache.org/guides/mini/guide-naming-conventions.html @@ -150,8 +147,9 @@ publishing { maven { url 'https://pkgs.dev.azure.com/Ellpeck/NaturesAura/_packaging/NaturesAura/maven/v1' name 'NaturesAura' - authentication { - basic(BasicAuthentication) + credentials { + username "Azure DevOps Services" + password System.getenv('ACCESS_TOKEN') } } }