-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
73eee20
commit 524eeba
Showing
10 changed files
with
52 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
task deleteOldJar(type: Delete) { | ||
delete("../unity-ads/libs/${project.name}.jar") | ||
} | ||
|
||
def copyJarTask(buildType) { | ||
return tasks.create("copyJars${buildType}", Copy.class) { | ||
from("build/intermediates/compile_library_classes_jar/${buildType}/") | ||
into('../unity-ads/libs/') | ||
include('classes.jar') | ||
rename('classes.jar', "${project.name}.jar") | ||
}.dependsOn(deleteOldJar) | ||
} | ||
|
||
project.tasks.whenTaskAdded { Task theTask -> | ||
if (theTask.name == 'bundleLibCompileToJarRelease') { | ||
theTask.finalizedBy(copyJarTask("release")) | ||
} | ||
if (theTask.name == 'bundleLibCompileToJarDebug') { | ||
theTask.finalizedBy(copyJarTask("debug")) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
apply plugin: 'io.github.gradle-nexus.publish-plugin' | ||
|
||
Properties properties = new Properties() | ||
if (project.rootProject.file('local.properties').exists()) { | ||
properties.load(project.rootProject.file('local.properties').newDataInputStream()) | ||
} | ||
|
||
nexusPublishing { | ||
repositories { | ||
sonatype { | ||
stagingProfileId = properties.getProperty("NEXUS_PROFILE_ID") | ||
username = properties.getProperty("NEXUS_USERNAME") | ||
password = properties.getProperty("NEXUS_PASSWORD") | ||
// Add these lines if using new Sonatype infra | ||
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/")) | ||
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")) | ||
} | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters