Skip to content

Commit

Permalink
fixing package name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ranbir Kumar committed Jun 16, 2024
1 parent 6fb71ef commit e2c6dfb
Show file tree
Hide file tree
Showing 19 changed files with 45 additions and 31 deletions.
18 changes: 9 additions & 9 deletions lang/java/gradle-plugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ pluginManagement {
`build.gradle`:
```groovy
plugins {
id "com.github.davidmc24.gradle.plugin.avro" version "VERSION"
id "org.apache.gradle.plugin.avro" version "VERSION"
}
```

Expand Down Expand Up @@ -271,8 +271,8 @@ dependencies {
avro {
conversionsAndTypeFactoriesClasspath.from(configurations.customConversions)
logicalTypeFactoryClassNames.put("timezone", "test.java.org.apache.avro.test.custom.TimeZoneLogicalTypeFactory")
customConversionClassNames.add("test.java.org.apache.avro.test.custom.TimeZoneConversion")
logicalTypeFactoryClassNames.put("timezone", "org.apache.avro.test.custom.TimeZoneLogicalTypeFactory")
customConversionClassNames.add("org.apache.avro.test.custom.TimeZoneConversion")
}
```

Expand All @@ -293,7 +293,7 @@ Here's a short example of what this might look like:
import main.java.org.apache.avro.GenerateAvroJavaTask
apply plugin: "java"
apply plugin: "com.github.davidmc24.gradle.plugin.avro-base"
apply plugin: "org.apache.gradle.plugin.avro-base"
dependencies {
implementation "org.apache.avro:avro:1.11.0"
Expand Down Expand Up @@ -386,7 +386,7 @@ In `gradle.build.kts` add:
```kotlin
plugins {
// Find latest release here: https://github.com/davidmc24/gradle-avro-plugin/releases
id("com.github.davidmc24.gradle.plugin.avro") version "VERSION"
id("org.apache.gradle.plugin.avro") version "VERSION"
}
```

Expand Down Expand Up @@ -426,7 +426,7 @@ Example build:
```groovy
import main.java.org.apache.avro.ResolveAvroDependenciesTask
apply plugin: "com.github.davidmc24.gradle.plugin.avro-base"
apply plugin: "org.apache.gradle.plugin.avro-base"
tasks.register("resolveAvroDependencies", ResolveAvroDependenciesTask) {
source file("src/avro/normalized")
Expand All @@ -444,10 +444,10 @@ From IDL files, first use `GenerateAvroProtocolTask` to convert the IDL files to
Example using base plugin with support for both IDL and JSON protocol files in `src/main/avro`:

```groovy
import main.java.org.apache.avro.GenerateAvroProtocolTask
import main.java.org.apache.avro.GenerateAvroSchemaTask
import org.apache.avro.GenerateAvroProtocolTask
import org.apache.avro.GenerateAvroSchemaTask
apply plugin: "com.github.davidmc24.gradle.plugin.avro-base"
apply plugin: "org.apache.gradle.plugin.avro-base"
def generateProtocol = tasks.register("generateProtocol", GenerateAvroProtocolTask) {
source file("src/main/avro")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import test.java.org.apache.avro.test.custom.CommentGenerator
import test.java.org.apache.avro.test.custom.TimestampGenerator
import org.apache.avro.test.custom.CommentGenerator
import org.apache.avro.test.custom.TimestampGenerator

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.GradleFeatures

import static org.gradle.testkit.runner.TaskOutcome.FAILED
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.AvroPlugin
import org.apache.avro.Constants
import org.apache.avro.GenerateAvroJavaTask
import org.apache.avro.GenerateAvroProtocolTask
import org.apache.avro.OutputDirTask
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
import spock.lang.Specification
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.AvroUtils
import org.apache.avro.Protocol
import org.apache.avro.Schema
import spock.lang.Specification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import spock.lang.IgnoreIf
import spock.util.environment.OperatingSystem
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import static org.gradle.testkit.runner.TaskOutcome.FAILED
import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import spock.lang.Unroll

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import com.vdurmont.semver4j.Semver
import org.apache.avro.GradleFeatures
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.GradleRunner
import org.gradle.util.GradleVersion
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.GenerateAvroProtocolTask
import spock.lang.Subject

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.GradleFeatures
import org.gradle.testkit.runner.BuildResult

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.apache.avro
package org.apache.avro.test.custom

import static org.gradle.testkit.runner.TaskOutcome.SUCCESS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.avro
package org.apache.avro.test.custom

import test.java.org.apache.avro.test.custom.CommentGenerator
import test.java.org.apache.avro.test.custom.TimestampGenerator
import org.apache.avro.test.custom.CommentGenerator
import org.apache.avro.test.custom.TimestampGenerator
import org.apache.avro.compiler.specific.SpecificCompiler.FieldVisibility
import org.apache.avro.generic.GenericData.StringType
import spock.lang.Unroll
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.ResolveAvroDependenciesTask
import org.hamcrest.MatcherAssert
import spock.lang.Subject
import uk.co.datumedge.hamcrest.json.SameJSONAs
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.SchemaResolver
import org.gradle.api.GradleException
import org.gradle.api.Project
import org.gradle.testfixtures.ProjectBuilder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.apache.avro
package org.apache.avro.test.custom

import org.apache.avro.Strings
import spock.lang.Specification
import spock.lang.Subject
import spock.lang.Unroll
Expand Down

0 comments on commit e2c6dfb

Please sign in to comment.