Skip to content

Commit

Permalink
fix auto apply
Browse files Browse the repository at this point in the history
  • Loading branch information
endink committed Dec 8, 2021
1 parent 30eea0d commit b76042d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Constants.kt
Expand Up @@ -2,6 +2,6 @@ object Constants {
const val kotlinVersion = "1.6.0"
const val publishingPluginVersion = "1.1.0"
const val testPlugin = false
const val projectVersion = "1.0.4"
const val projectVersion = "1.0.5"
const val kspPluginVersion = "1.6.0-1.0.1"
}
2 changes: 2 additions & 0 deletions src/main/kotlin/Exporter.kt
@@ -1,4 +1,5 @@
import com.labijie.infra.gradle.InfraExtension
import com.labijie.infra.gradle.Utils.apply
import org.gradle.api.Action
import org.gradle.api.Project

Expand All @@ -9,6 +10,7 @@ import org.gradle.api.Project
* @Description:
*/
fun Project.infra(action: Action<in InfraExtension>){
this.apply(plugin="com.labijie.infra")
val ext = this.extensions.findByName(InfraExtension.Name)
if(ext != null && ext is InfraExtension) {
this.extensions.configure(InfraExtension::class.java, action)
Expand Down

0 comments on commit b76042d

Please sign in to comment.