@@ -11,6 +11,7 @@ plugins {
1111apply { from (" ../common.gradle" ) }
1212
1313// What a mess...
14+ version = libs.versions.aap.core.get()
1415val enable_asan: Boolean by rootProject
1516
1617android {
@@ -62,13 +63,6 @@ android {
6263 }
6364}
6465
65- apply { from (" ../publish-pom.gradle" ) }
66- // "mavenPublishing" could not resolve reference to com.vanniktech.maven.publish.SonatypeHost. Another reason Gradle should die.
67- mavenPublishing {
68- configure(AndroidMultiVariantLibrary ())
69- publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost .CENTRAL_PORTAL )
70- }
71-
7266dependencies {
7367 implementation (project(" :androidaudioplugin" ))
7468 implementation (libs.androidx.core.ktx)
@@ -81,13 +75,29 @@ dependencies {
8175 androidTestImplementation (libs.test.espresso.core)
8276}
8377
84- /*
85- // Starting AGP 7.0.0-alpha05, AGP stopped caring build dependencies and it broke builds.
86- // This is a forcible workarounds to build libandroidaudioplugin.so in prior to referencing it.
87- gradle.projectsEvaluated {
88- tasks.findByPath(":androidaudioplugin-midi-device-service:buildCMakeDebug")!!.dependsOn(":androidaudioplugin:prefabDebugPackage")
89- tasks.findByPath(":androidaudioplugin-midi-device-service:buildCMakeRelWithDebInfo")!!.dependsOn(":androidaudioplugin:prefabReleasePackage")
90- //tasks["mergeDebugNativeLibs"].dependsOn(rootProject.project("androidaudioplugin").tasks["prefabDebugPackage"])
91- //tasks["mergeReleaseNativeLibs"].dependsOn(rootProject.project("androidaudioplugin").tasks["prefabReleasePackage"])
78+ val gitProjectName = " aap-core"
79+ val packageName = project.name
80+ val packageDescription = android.ext[" description" ].toString()
81+ // my common settings
82+ val packageUrl = " https://github.com/atsushieno/$gitProjectName "
83+ val licenseName = " MIT"
84+ val licenseUrl = " https://github.com/atsushieno/$gitProjectName /blob/main/LICENSE"
85+ val devId = " atsushieno"
86+ val devName = " Atsushi Eno"
87+ val devEmail = " atsushieno@gmail.com"
88+
89+ // Common copy-pasted
90+ mavenPublishing {
91+ publishToMavenCentral(com.vanniktech.maven.publish.SonatypeHost .CENTRAL_PORTAL )
92+ if (project.hasProperty(" mavenCentralUsername" ) || System .getenv(" ORG_GRADLE_PROJECT_mavenCentralUsername" ) != null )
93+ signAllPublications()
94+ coordinates(group.toString(), project.name, version.toString())
95+ pom {
96+ name.set(packageName)
97+ description.set(packageDescription)
98+ url.set(packageUrl)
99+ scm { url.set(packageUrl) }
100+ licenses { license { name.set(licenseName); url.set(licenseUrl) } }
101+ developers { developer { id.set(devId); name.set(devName); email.set(devEmail) } }
102+ }
92103}
93- */
0 commit comments