Skip to content

Commit 87895e6

Browse files
AJ Danelzsjaakd
authored andcommitted
example for using protobufs with gradle
1 parent c0c0137 commit 87895e6

17 files changed

Lines changed: 679 additions & 0 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
target
1616
test-output
1717
/*/build
18+
/*/*/build
1819
/*/bin
20+
/*/out
21+
/*/*/out
1922

2023
# Gradle
2124
.gradle
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
plugins {
2+
id 'java'
3+
id 'net.ltgt.apt' version '0.9'
4+
id "com.google.protobuf" version "0.8.6"
5+
}
6+
7+
subprojects {
8+
repositories {
9+
mavenCentral()
10+
}
11+
12+
ext {
13+
mapstructVersion = "1.3.0.Beta2"
14+
}
15+
}
16+
17+
task wrapper(type: Wrapper) {
18+
gradleVersion = '4.10.3'
19+
}
20+
51.7 KB
Binary file not shown.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Fri Jun 02 13:41:51 CEST 2017
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-3.1-all.zip

mapstruct-on-gradle-protobuf3/gradlew

Lines changed: 169 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mapstruct-on-gradle-protobuf3/gradlew.bat

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
rootProject.name = 'mapstruct-on-gradle-protobuf3'
2+
rootProject.buildFileName = 'build.gradle'
3+
include 'usage'
4+
include 'spi-impl'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apply plugin: 'net.ltgt.apt'
2+
apply plugin: 'java'
3+
4+
sourceCompatibility = JavaVersion.VERSION_1_8
5+
6+
dependencies {
7+
compile "org.mapstruct:mapstruct-jdk8:$mapstructVersion"
8+
compile "org.mapstruct:mapstruct-processor:$mapstructVersion"
9+
}

0 commit comments

Comments
 (0)