11// Top-level build file where you can add configuration options common to all sub-projects/modules.
22buildscript {
33 dependencies {
4- classpath(" io.github.FlyJingFish.ModuleCommunication:module-communication -plugin:${rootProject.properties[" TestVersion" ]} " )
4+ classpath(" io.github.flyjingfish:modulecommunication -plugin:${rootProject.properties[" TestVersion" ]} " )
55// classpath("io.github.FlyJingFish.AndroidAop:android-aop-plugin:2.0.8")
66 }
77}
88@Suppress(" DSL_SCOPE_VIOLATION" )
99plugins {
10- id(" com.android.application" ) version " 7.4.1 " apply false
11- id(" com.android.library" ) version " 7.4.1 " apply false
12- id(" org.jetbrains.kotlin.android" ) version " 1.8.10 " apply false
13- id(" org.jetbrains.kotlin.jvm" ) version " 1.8.10 " apply false
14- id(" io.github.gradle-nexus .publish-plugin " ) version " 2.0.0-rc-1 "
15- id(" com.google.devtools.ksp" ) version " 1.8.10 -1.0.9 " apply false
10+ id(" com.android.application" ) version " 8.2.2 " apply false
11+ id(" com.android.library" ) version " 8.2.2 " apply false
12+ id(" org.jetbrains.kotlin.android" ) version " 1.9.23 " apply false
13+ id(" org.jetbrains.kotlin.jvm" ) version " 1.9.23 " apply false
14+ id(" com.vanniktech.maven .publish" ) version " 0.33.0 "
15+ id(" com.google.devtools.ksp" ) version " 1.9.23 -1.0.20 " apply false
1616 alias(libs.plugins.androidAop.plugin)
1717}
1818// apply(plugin = "android.aop")
@@ -102,30 +102,20 @@ fun updateLib(readme :String,oldVersionName :String,newVersionName :String) {
102102fun updateREADME (readme : String ,oldVersionName : String ,newVersionName : String ) {
103103 val configFile = File (readme)
104104 val exportText = configFile.readText()
105- var text = exportText.replace(" io.github.FlyJingFish.ModuleCommunication:module-communication -plugin:$oldVersionName " ,
106- " io.github.FlyJingFish.ModuleCommunication:module-communication -plugin:$newVersionName "
105+ var text = exportText.replace(" io.github.flyjingfish:modulecommunication -plugin:$oldVersionName " ,
106+ " io.github.flyjingfish:modulecommunication -plugin:$newVersionName "
107107 )
108- text = text.replace(" io.github.FlyJingFish.ModuleCommunication:module-communication -annotation:$oldVersionName " ,
109- " io.github.FlyJingFish.ModuleCommunication:module-communication -annotation:$newVersionName "
108+ text = text.replace(" io.github.flyjingfish:modulecommunication -annotation:$oldVersionName " ,
109+ " io.github.flyjingfish:modulecommunication -annotation:$newVersionName "
110110 )
111- text = text.replace(" io.github.FlyJingFish.ModuleCommunication:module-communication -intercept:$oldVersionName " ,
112- " io.github.FlyJingFish.ModuleCommunication:module-communication -intercept:$newVersionName "
111+ text = text.replace(" io.github.flyjingfish:modulecommunication -intercept:$oldVersionName " ,
112+ " io.github.flyjingfish:modulecommunication -intercept:$newVersionName "
113113 )
114- text = text.replace(" io.github.FlyJingFish.ModuleCommunication:module-communication -route:$oldVersionName " ,
115- " io.github.FlyJingFish.ModuleCommunication:module-communication -route:$newVersionName "
114+ text = text.replace(" io.github.flyjingfish:modulecommunication -route:$oldVersionName " ,
115+ " io.github.flyjingfish:modulecommunication -route:$newVersionName "
116116 )
117117 configFile.writeText(text)
118118}
119119val appVersionName = getAppVName()
120120group = properties[" PROJ_GROUP" ].toString()
121- version = appVersionName
122- nexusPublishing {
123- repositories {
124- create(" Nexus" ) {
125- nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
126- snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
127- username.set(properties[" ossrhUsername" ].toString())
128- password.set(properties[" ossrhPassword" ].toString())
129- }
130- }
131- }
121+ version = appVersionName
0 commit comments