-
Notifications
You must be signed in to change notification settings - Fork 276
Comparing changes
Open a pull request
base repository: google/protobuf-gradle-plugin
base: v0.9.1
head repository: google/protobuf-gradle-plugin
compare: master
Commits on Oct 8, 2022
-
Configuration menu - View commit details
-
Copy full SHA for d6f7cff - Browse repository at this point
Copy the full SHA d6f7cffView commit details
Commits on Oct 21, 2022
-
Change PluginClasspath for tests to binary plugin from maven local (#613
) * Change PluginClasspath for tests to binary plugin from maven local * Revert "Use withId() to wait for kotlin-android plugin" This reverts commit 1be9931. * Fix code review comments * Publish plugin for tests to build/testRepo folder * Fix magic groovy cast problem
Configuration menu - View commit details
-
Copy full SHA for f510de7 - Browse repository at this point
Copy the full SHA f510de7View commit details -
Configuration menu - View commit details
-
Copy full SHA for e20df5b - Browse repository at this point
Copy the full SHA e20df5bView commit details
Commits on Nov 4, 2022
-
Do not use compileClasspath as source of proto files (#631)
* Do not use compileClasspath as source of proto files * Add failing test case for #624 * Fix codenarc problems
Configuration menu - View commit details
-
Copy full SHA for 0521fe7 - Browse repository at this point
Copy the full SHA 0521fe7View commit details
Commits on Nov 17, 2022
-
Wire proto sources/outputs/etc through ProtoSourceSet (#637)
* Wire proto sources/outputs/etc through ProtoSourceSet * Use ProtoSourceSet as input for kotlin compile task * Fix pr comments - Update copyright in DefaultProtoSourceSet - Do better isTest variant check * Don't use protoSourceSet.output as kotlin compile sources KotlinCompile configuration block can be executed before generateTask lazy configuration. Request generate task configuration.
Configuration menu - View commit details
-
Copy full SHA for 7b37f79 - Browse repository at this point
Copy the full SHA 7b37f79View commit details
Commits on Nov 18, 2022
-
Remove DefaultProtoSourceSet casting to ProtoSourceSet in domainObjec…
…tContainer factory method (#640)
Configuration menu - View commit details
-
Copy full SHA for 0ba3ce0 - Browse repository at this point
Copy the full SHA 0ba3ce0View commit details
Commits on Jan 4, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 2fbe179 - Browse repository at this point
Copy the full SHA 2fbe179View commit details
Commits on Jan 5, 2023
-
Emulate and deprecate generatedFilesBaseDir (#636)
Fixes #33 for users not changing generatedFilesBaseDir. Stop documenting generatedFilesBaseDir since it produces poor results, but keep it functional with its existing Copy semantics. Fixes #332 This deprecates the setter, but I don't know how to make this trigger a warning, for either Groovy and Kotlin. Both seem to ignore it. Turn off UnnecessaryObjectReferences because it isn't providing value.
Configuration menu - View commit details
-
Copy full SHA for 278f21b - Browse repository at this point
Copy the full SHA 278f21bView commit details
Commits on Jan 8, 2023
-
Set default command length limit to 64k (#653)
Various operating systems impose command length limits that are far short of the current Integer.MAX_VALUE default. For example, on MacOS 12.6.2, getconf ARG_MAX returns 1048576. Hence set a reasonable default command line length limit of 64k.
Configuration menu - View commit details
-
Copy full SHA for 4052f42 - Browse repository at this point
Copy the full SHA 4052f42View commit details
Commits on Jan 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 7246cdb - Browse repository at this point
Copy the full SHA 7246cdbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6f43013 - Browse repository at this point
Copy the full SHA 6f43013View commit details
Commits on Jan 10, 2023
-
Avoid OOM during tests by forking
Generally on my laptop I cannot run many of the tests before they fail with out-of-memory. With this, I can run all the tests successfully. There does not seem to be a way to request forking directly. Instead, the docs warn about passing an environment because it will cause forking. In our case, that seems to be exactly what we want. I believe this is a workaround and only benefitting indirectly, but it works and is easy and I'll take what I can get.
Configuration menu - View commit details
-
Copy full SHA for 70578a6 - Browse repository at this point
Copy the full SHA 70578a6View commit details -
Use KotlinCompile type directly (#657)
* Use KotlinCompile type directly * Add Kotlin 1.7.20, Gradle 7.6 versions to tests * Fix codenarc issues * Do not run all gradleVersion * kotlinVersion combinations * Bump kotlin and agp versions
Configuration menu - View commit details
-
Copy full SHA for 69c7a31 - Browse repository at this point
Copy the full SHA 69c7a31View commit details
Commits on Jan 19, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 13cecec - Browse repository at this point
Copy the full SHA 13cececView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f6e8a8 - Browse repository at this point
Copy the full SHA 3f6e8a8View commit details
Commits on Jan 20, 2023
-
build.gradle: Remove old/unnecessary repositories
kotlin.bintray.com is dead and has an invalid certificate. repo.gradle.org was for gradle-kotlin-dsl which we're getting through plugins.gradle.org.
Configuration menu - View commit details
-
Copy full SHA for 7f240e8 - Browse repository at this point
Copy the full SHA 7f240e8View commit details -
Configuration menu - View commit details
-
Copy full SHA for ccf96a9 - Browse repository at this point
Copy the full SHA ccf96a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 781fad2 - Browse repository at this point
Copy the full SHA 781fad2View commit details
Commits on Feb 9, 2023
-
Delay buildDir evaluation until needed
This causes the plugin to use the correct configuration when users use a non-default buildDir. Note that for IDEs we create directories in afterEvaluate{}. It is possible for the user's own afterEvaluate{} to change buildDir. In that case, the task will output to the 'correct' directory but the mkdirs for IDEs can be the 'old' buildDir. But users shouldn't be using afterEvaluate{}, so we don't care and there's no real fix anyway. Fixes #674
Configuration menu - View commit details
-
Copy full SHA for 7deeb2a - Browse repository at this point
Copy the full SHA 7deeb2aView commit details
Commits on Feb 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for a801fa3 - Browse repository at this point
Copy the full SHA a801fa3View commit details
Commits on Apr 19, 2023
-
GenerateProtoTask.getIsTest() is internal, not an input
This fixes a configuration cache incompatibility seen on Gradle 8.1 and that seemed to requiring other configuration bits as well. I have not reproduced the original issue, but a user has confirmed this fix works and the original stack trace definitely pointed to the annotation: ``` ... at com.google.protobuf.gradle.GenerateProtoTask.getIsTest(GenerateProtoTask.groovy:482) at com.google.protobuf.gradle.GenerateProtoTask_Decorated.getIsTest(Unknown Source) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.gradle.internal.reflect.annotations.impl.DefaultPropertyAnnotationMetadata.getPropertyValue(DefaultPropertyAnnotationMetadata.java:97) at org.gradle.internal.properties.annotations.DefaultTypeMetadataStore$DefaultPropertyMetadata.getPropertyValue(DefaultTypeMetadataStore.java:266) at org.gradle.internal.properties.bean.DefaultPropertyWalker$1.lambda$visitLeaf$0(DefaultPropertyWalker.java:88) at org.gradle.internal.deprecation.DeprecationLogger.whileDisabled(DeprecationLogger.java:258) at org.gradle.internal.properties.bean.DefaultPropertyWalker$CachedPropertyValue.lambda$new$0(DefaultPropertyWalker.java:105) at com.google.common.base.Suppliers$NonSerializableMemoizingSupplier.get(Suppliers.java:183) at org.gradle.internal.properties.bean.DefaultPropertyWalker$CachedPropertyValue.call(DefaultPropertyWalker.java:147) at org.gradle.util.internal.GUtil.uncheckedCall(GUtil.java:437) at org.gradle.util.internal.DeferredUtil.unpackNestableDeferred(DeferredUtil.java:83) at org.gradle.util.internal.DeferredUtil.unpack(DeferredUtil.java:57) at org.gradle.util.internal.DeferredUtil.unpackOrNull(DeferredUtil.java:49) at org.gradle.api.internal.tasks.properties.InputParameterUtils.prepareInputParameterValue(InputParameterUtils.java:38) at org.gradle.api.internal.tasks.properties.InputParameterUtils.prepareInputParameterValue(InputParameterUtils.java:30) ... ``` Fixes #687
Configuration menu - View commit details
-
Copy full SHA for a3f6072 - Browse repository at this point
Copy the full SHA a3f6072View commit details
Commits on Apr 26, 2023
-
Configuration menu - View commit details
-
Copy full SHA for d7c23d9 - Browse repository at this point
Copy the full SHA d7c23d9View commit details
Commits on May 9, 2023
-
Configuration menu - View commit details
-
Copy full SHA for b94ffeb - Browse repository at this point
Copy the full SHA b94ffebView commit details
Commits on May 10, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 6434c1d - Browse repository at this point
Copy the full SHA 6434c1dView commit details -
Avoid duplicate GenerateProtoTask output dir (#703)
Remove duplicate output source dir that breaks in android in source jar task. When using the insertion point, custom plugin needs to use the same output directory as the code gen output directory from java/javalite. This causes other tasks to fail if it depends on the output source and duplicationStrategy is set to `DuplicatesStrategy.FAIL`
Configuration menu - View commit details
-
Copy full SHA for 96e23fa - Browse repository at this point
Copy the full SHA 96e23faView commit details
Commits on May 15, 2023
-
Configuration menu - View commit details
-
Copy full SHA for 9d2a328 - Browse repository at this point
Copy the full SHA 9d2a328View commit details
Commits on Jun 28, 2023
-
Avoid eagerly resolving input files in ProtobufExtract (#713)
Rely on FileCollection.getElements() (available in Gradle 5.6+) to ensure no files are accessed eagerly during configuration. This also ensures configuration cache key does not depend on them. Fixes issue #711. Test: Added "testProjectDependent proto extraction with configuration cache" with Gradle 8.1
Configuration menu - View commit details
-
Copy full SHA for 6b74668 - Browse repository at this point
Copy the full SHA 6b74668View commit details
Commits on Jul 7, 2023
-
stop using configuration Configuration#fileCollection(Dependency...),…
… soon to be deprecated (#716) The files(Dependency...) method filters the contents of the configuration to only include files from the provided dependencies and it's transitive dependencies. Since there is only one dependency in the configuration, using this method is unnecessary.
Configuration menu - View commit details
-
Copy full SHA for a80bf81 - Browse repository at this point
Copy the full SHA a80bf81View commit details
Commits on Jul 10, 2023
-
Fix plugin compatibility with Kotlin Gradle Plugin 1.9.0 release (#715)
Kotlin Gradle Plugin 1.9.0 release has changed how kapt tasks are configured: https://youtrack.jetbrains.com/issue/KT-54468/KAPT-Gradle-plugin-causes-eager-task-creation. Because of this change, generated proto sources are not passed to kaptGenerateStubs task leading to compilation error even in default setup. If the Kotlin plugin version is 1.7.20 - protobuf plugin now, instead of directly configuring KotlinCompile task inputs, configures related KotlinSourceSet. This way additional sources are passed both for KotlinCompile and KaptGenerateStubs tasks. Fixes issue #714
Configuration menu - View commit details
-
Copy full SHA for fe24ff4 - Browse repository at this point
Copy the full SHA fe24ff4View commit details
Commits on Jul 20, 2023
-
Configuration menu - View commit details
-
Copy full SHA for ff4fe68 - Browse repository at this point
Copy the full SHA ff4fe68View commit details
Commits on Sep 5, 2023
-
Clean output directory before extracting protos
If the dependencies change, the old dependency's proto files can be left around. That is broken and causes confusion. This was noticed in #731 when a `gradle clean` was needed.
Configuration menu - View commit details
-
Copy full SHA for 90c856f - Browse repository at this point
Copy the full SHA 90c856fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4ec03ff - Browse repository at this point
Copy the full SHA 4ec03ffView commit details
Commits on Mar 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ee41e2f - Browse repository at this point
Copy the full SHA ee41e2fView commit details
Commits on Mar 14, 2024
-
Configurable java executable (#750)
The path of the java executable can now be configured in the ProtobufExtension and/or specific GenerateProtoTask instances. * GenerateProtoTask gains the javaExecutablePath Property, * ProtobufExtension gains the javaExecutablePath Property and the defaultJavaExecutablePath provider, which provides the default path using the same logic as previous versions * computeJavaExePath moved from GenerateProtoTask to ProtobufExtension since it is now only used in ProtobufExtension * isWindows moved from GenerateProtoTask to Util since it is now used in GenerateProtoTask and ProtobufExtension
Configuration menu - View commit details
-
Copy full SHA for 12ad318 - Browse repository at this point
Copy the full SHA 12ad318View commit details
Commits on Nov 12, 2024
-
Configuration menu - View commit details
-
Copy full SHA for ecc9b97 - Browse repository at this point
Copy the full SHA ecc9b97View commit details
Commits on Nov 13, 2024
-
Align default output folder with Gradle best practices (#755)
Use generated/sources/proto (plural) instead source. Fixes #754
Configuration menu - View commit details
-
Copy full SHA for 2810499 - Browse repository at this point
Copy the full SHA 2810499View commit details
Commits on Jan 22, 2025
-
Configuration menu - View commit details
-
Copy full SHA for cbc8f03 - Browse repository at this point
Copy the full SHA cbc8f03View commit details -
Configuration menu - View commit details
-
Copy full SHA for 665de2f - Browse repository at this point
Copy the full SHA 665de2fView commit details
Commits on Jan 28, 2025
-
Configuration menu - View commit details
-
Copy full SHA for fb71f67 - Browse repository at this point
Copy the full SHA fb71f67View commit details
There are no files selected for viewing