From 7d8af3af08ff1f3bbc11ba52b808b1a62a2b05b6 Mon Sep 17 00:00:00 2001 From: Speiger Date: Mon, 27 Dec 2021 19:59:19 +0100 Subject: [PATCH] Moving Credentials Away from this file because now i need it --- .gitignore | 3 +-- build.gradle | 6 ++++-- gradle.properties | 1 + 3 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 gradle.properties diff --git a/.gitignore b/.gitignore index 511dbffa..0dd0becc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ # ---> Gradle .gradle /build/ -gradle.properties # Ignore Gradle GUI config gradle-app.setting @@ -32,4 +31,4 @@ gradle-app.setting /src/main/java/speiger/src/collections/objects/* #Cache result -/src/builder/resources/speiger/assets/collections/cache.bin \ No newline at end of file +/src/builder/resources/speiger/assets/collections/cache.bin diff --git a/build.gradle b/build.gradle index eb8a90e9..a3136a29 100644 --- a/build.gradle +++ b/build.gradle @@ -87,12 +87,14 @@ test { } uploadArchives { + Properties props = new Properties() + props.load(new FileInputStream("$buildDir/credentials.properties")) repositories.mavenDeployer { repository(url: 'https://maven.speiger.com/repository/main') { - authentication(userName: project.properties.mavenUser, password: project.properties.mavenPassword) + authentication(userName: props.mavenUser, password: props.mavenPassword) } snapshotRepository(url: 'https://maven.speiger.com/repository/main') { - authentication(userName: project.properties.mavenUser, password: project.properties.mavenPassword) + authentication(userName: props.mavenUser, password: props.mavenPassword) } pom { version = project.version diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..659b74c0 --- /dev/null +++ b/gradle.properties @@ -0,0 +1 @@ +org.gradle.jvmargs=-Xmx3G \ No newline at end of file