Skip to content

Fixed `expect/actual` DSL issues

551a691
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Fixed expect/actual DSL issues #327

Fixed `expect/actual` DSL issues
551a691
Select commit
Loading
Failed to load commit list.
GitHub Actions / Test Results (plugin) succeeded Nov 16, 2025 in 0s

100 tests ✅ passed, checks: ⚠️ 5

Test Suites ✅ 100 passed 🟡 0 skipped ❌ 0 failed ⌛ took
✅ com.github.gmazzo.buildconfig.BuildConfigPluginTest#
  • ✅ Args(gradleVersion=7.3, kotlinVersion=1.9.+, androidVersion=null, withPackage=true)# (⌛ 77.557)
  • ✅ Args(gradleVersion=7.3, kotlinVersion=null, androidVersion=null, withPackage=true)# (⌛ 33.167)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=1.9.+, androidVersion=null, withPackage=true)# (⌛ 163.152)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=2.2.20, androidVersion=8.13.1, withPackage=true)# (⌛ 268.297)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=2.2.20, androidVersion=null, withPackage=false)# (⌛ 149.655)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=2.2.20, androidVersion=null, withPackage=true)# (⌛ 148.44)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=null, androidVersion=8.13.1, withPackage=true)# (⌛ 337.954)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=null, androidVersion=null, withPackage=false)# (⌛ 89.997)
  • ✅ Args(gradleVersion=9.2.0, kotlinVersion=null, androidVersion=null, withPackage=true)# (⌛ 90.251)
9 0 0 338.208
✅ com.github.gmazzo.buildconfig.BuildConfigTaskCacheabilityTest#
  • ✅ using java, cacheability should succeeded()# (⌛ 78.396)
  • ✅ using kotlin, cacheability should succeeded()# (⌛ 210.262)
2 0 0 288.661
✅ com.github.gmazzo.buildconfig.BuildConfigTaskTest#
  • ✅ order of fields must be honored when propagated to the generator()# (⌛ 3.364)
1 0 0 3.364
✅ com.github.gmazzo.buildconfig.BuildConfigTypeUtilsTests#
  • ✅ [1] "com.example.app", "com.example.app"# (⌛ 0.098)
  • ✅ [1] String, "String"# (⌛ 0.008)
  • ✅ [1] String, class java.lang.String# (⌛ 0.001)
  • ✅ [1] String, kotlin.String# (⌛ 0.014)
  • ✅ [10] Int[], kotlin.IntArray# (⌛ 0.005)
  • ✅ [10] java.util.Map<String, Int>?[], "java.util.Map<String, Int>?[]"# (⌛ 0.001)
  • ✅ [11] Int?[], kotlin.Array<kotlin.Int?># (⌛ 0.001)
  • ✅ [11] java.util.Map<String, Int>[]?, "java.util.Map<String, Int>[]?"# (⌛ 0.007)
  • ✅ [12] Int[]?, kotlin.Array<kotlin.Int>?# (⌛ 0.001)
  • ✅ [12] java.util.Map<String, Int>?[]?, "java.util.Map<String, Int>?[]?"# (⌛ 0.003)
  • ✅ [13] Int?[]?, kotlin.Array<kotlin.Int?>?# (⌛ 0.003)
  • ✅ [13] java.util.Map<String, List<Int?>>, "java.util.Map<String, List<Int?>>"# (⌛ 0.008)
  • ✅ [14] java.util.Map<String, Int>, kotlin.collections.Map<kotlin.String, kotlin.Int># (⌛ 0.011)
  • ✅ [14] java.util.Map<String, List<Int?>>?, "java.util.Map<String, List<Int?>>?"# (⌛ 0.001)
  • ✅ [15] java.util.Map<String, Int>?, kotlin.collections.Map<kotlin.String, kotlin.Int>?# (⌛ 0.005)
  • ✅ [15] java.util.Map<String, List<Int?>>[], "java.util.Map<String, List<Int?>>[]"# (⌛ 0.007)
  • ✅ [16] java.util.Map<String, Int>[], kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.Int>># (⌛ 0.014)
  • ✅ [16] java.util.Map<String, List<Int?>>?[], "java.util.Map<String, List<Int?>>?[]"# (⌛ 0.005)
  • ✅ [17] java.util.Map<String, Int>?[], kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.Int>?># (⌛ 0.001)
  • ✅ [17] java.util.Map<String, List<Int?>>[]?, "java.util.Map<String, List<Int?>>[]?"# (⌛ 0.006)
  • ✅ [18] java.util.Map<String, Int>[]?, kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.Int>>?# (⌛ 0.005)
  • ✅ [18] java.util.Map<String, List<Int?>>?[]?, "java.util.Map<String, List<Int?>>?[]?"# (⌛ 0.002)
  • ✅ [19] java.util.Map<String, Int>?[]?, kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.Int>?>?# (⌛ 0.001)
  • ✅ [2] "com.example.app10", "com.example.app10"# (⌛ 0.001)
  • ✅ [2] String?, "String?"# (⌛ 0.004)
  • ✅ [2] String?, kotlin.String?# (⌛ 0.004)
  • ✅ [2] String[], class [Ljava.lang.String;# (⌛ 0.004)
  • ✅ [20] java.util.Map<String, List<Int?>>, kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.Int?>># (⌛ 0.004)
  • ✅ [21] java.util.Map<String, List<Int?>>?, kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.Int?>>?# (⌛ 0.003)
  • ✅ [22] java.util.Map<String, List<Int?>>[], kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.Int?>>># (⌛ 0.004)
  • ✅ [23] java.util.Map<String, List<Int?>>?[], kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.Int?>>?># (⌛ 0.001)
  • ✅ [24] java.util.Map<String, List<Int?>>[]?, kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.Int?>>>?# (⌛ 0.001)
  • ✅ [25] java.util.Map<String, List<Int?>>?[]?, kotlin.Array<kotlin.collections.Map<kotlin.String, kotlin.collections.List<kotlin.Int?>>?>?# (⌛ 0.004)
  • ✅ [3] "com.example.my10app", "com.example.my10app"# (⌛ 0.001)
  • ✅ [3] Int, int# (⌛ 0.006)
  • ✅ [3] String[], "String[]"# (⌛ 0.001)
  • ✅ [3] String[], kotlin.Array<kotlin.String># (⌛ 0.009)
  • ✅ [4] "com.example._10app", "com.example.10app"# (⌛ 0.007)
  • ✅ [4] Int[], class [Ljava.lang.Integer;# (⌛ 0.006)
  • ✅ [4] String?[], "String?[]"# (⌛ 0.003)
  • ✅ [4] String?[], kotlin.Array<kotlin.String?># (⌛ 0.001)
  • ✅ [5] "com.example.app$10", "com.example.app$10"# (⌛ 0.004)
  • ✅ [5] Int[], class [Ljava.lang.Integer;# (⌛ 0.001)
  • ✅ [5] String[]?, "String[]?"# (⌛ 0.003)
  • ✅ [5] String[]?, kotlin.Array<kotlin.String>?# (⌛ 0.002)
  • ✅ [6] "com.example_app", "com.example-app"# (⌛ 0.007)
  • ✅ [6] Int[], class [I# (⌛ 0.008)
  • ✅ [6] String?[]?, "String?[]?"# (⌛ 0.002)
  • ✅ [6] String?[]?, kotlin.Array<kotlin.String?>?# (⌛ 0.005)
  • ✅ [7] Int, kotlin.Int# (⌛ 0.001)
  • ✅ [7] java.util.Map<String, Int>, "java.util.Map<String, Int>"# (⌛ 0.001)
  • ✅ [8] Int?, kotlin.Int?# (⌛ 0.002)
  • ✅ [8] java.util.Map<String, Int>?, "java.util.Map<String, Int>?"# (⌛ 0.001)
  • ✅ [9] Int[], kotlin.Array<kotlin.Int># (⌛ 0.005)
  • ✅ [9] java.util.Map<String, Int>[], "java.util.Map<String, Int>[]"# (⌛ 0.001)
55 0 0 0.665
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.001)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.005
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.001)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.001
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.0)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.001
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.012)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.013
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.006)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.007
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.001)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.001
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.005)
  • ✅ testBuildConfigTestProperties# (⌛ 0.003)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.009
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.004)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.008
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.002)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.006
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.001)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.001
✅ gs.test.BuildConfigTest#
  • ✅ testBuildConfigProperties# (⌛ 0.01)
  • ✅ testBuildConfigTestProperties# (⌛ 0.0)
  • ✅ testResourcesConfigProperties# (⌛ 0.0)
3 0 0 0.011
lint 8.13.1# 🛑 0 errors ⚠️ 5 warnings 💡 0 others
Correctness / GradleDependency# 0 2 0
Correctness / NewerVersionAvailable# 0 3 0

Annotations

Check warning on line 24 in /home/runner/work/gradle-buildconfig-plugin/gradle-buildconfig-plugin/plugin/build/tmp/test/BuildConfigPluginTest/gradle-9.2.0/kotlin-2.2.20/android-8.13.1/withPackage/build.gradle

See this annotation in the file changed.

@github-actions github-actions / Test Results (plugin)

Correctness: Obsolete Gradle Dependency

A newer version of `compileSdkVersion` than 33 is available: 36
Raw output
This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find.
            compileSdkVersion(33)
            ~~~~~~~~~~~~~~~~~~~~~

Check warning on line 4 in /home/runner/work/gradle-buildconfig-plugin/gradle-buildconfig-plugin/plugin/build/tmp/test/BuildConfigPluginTest/gradle-9.2.0/kotlin-2.2.20/android-8.13.1/withPackage/build.gradle

See this annotation in the file changed.

@github-actions github-actions / Test Results (plugin)

Correctness: Newer Library Versions Available

A newer version of org.jetbrains.kotlin.android than 2.2.20 is available: 2.2.21
Raw output
This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the `GradleDependency` check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also **much** slower.
    id 'org.jetbrains.kotlin.android' version '2.2.20'
                                              ~~~~~~~~

Check warning on line 42 in /home/runner/work/gradle-buildconfig-plugin/gradle-buildconfig-plugin/plugin/build/tmp/test/BuildConfigPluginTest/gradle-9.2.0/kotlin-2.2.20/android-8.13.1/withPackage/build.gradle

See this annotation in the file changed.

@github-actions github-actions / Test Results (plugin)

Correctness: Newer Library Versions Available

A newer version of junit:junit than 4.12 is available: 4.13.2
Raw output
This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the `GradleDependency` check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also **much** slower.
            testImplementation 'junit:junit:4.12'
                               ~~~~~~~~~~~~~~~~~~

Check warning on line 20 in /home/runner/work/gradle-buildconfig-plugin/gradle-buildconfig-plugin/plugin/build/tmp/test/BuildConfigPluginTest/gradle-9.2.0/kotlin-none/android-8.13.1/withPackage/build.gradle

See this annotation in the file changed.

@github-actions github-actions / Test Results (plugin)

Correctness: Obsolete Gradle Dependency

A newer version of `compileSdkVersion` than 33 is available: 36
Raw output
This detector looks for usages of libraries where the version you are using is not the current stable release. Using older versions is fine, and there are cases where you deliberately want to stick with an older version. However, you may simply not be aware that a more recent version is available, and that is what this lint check helps find.
            compileSdkVersion(33)
            ~~~~~~~~~~~~~~~~~~~~~

Check warning on line 38 in /home/runner/work/gradle-buildconfig-plugin/gradle-buildconfig-plugin/plugin/build/tmp/test/BuildConfigPluginTest/gradle-9.2.0/kotlin-none/android-8.13.1/withPackage/build.gradle

See this annotation in the file changed.

@github-actions github-actions / Test Results (plugin)

Correctness: Newer Library Versions Available

A newer version of junit:junit than 4.12 is available: 4.13.2
Raw output
This detector checks with a central repository to see if there are newer versions available for the dependencies used by this project. This is similar to the `GradleDependency` check, which checks for newer versions available in the Android SDK tools and libraries, but this works with any MavenCentral dependency, and connects to the library every time, which makes it more flexible but also **much** slower.
            testImplementation 'junit:junit:4.12'
                               ~~~~~~~~~~~~~~~~~~