Skip to content

Commit

Permalink
Added temporary fix for tbroyer/gradle-apt-plugin#49
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhofer committed May 3, 2017
1 parent 57d289b commit 9597fe5
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ dependencies {
compileOnly 'com.xinra.nucleus:interface-generator:0.1.1'
apt 'com.xinra.nucleus:interface-generator:0.1.1'
testCompile group: 'junit', name: 'junit', version: '4.+'
testCompileOnly 'com.xinra.nucleus:interface-generator:0.1.1'
}

publish {
Expand Down
24 changes: 24 additions & 0 deletions src/test/groovy/com/xinra/nucleus/service/TestDtoImpl.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
package com.xinra.nucleus.service;

public class TestDtoImpl extends DtoImpl implements TestDto {

private int foo;
private boolean bar;


public int getFoo() {
return foo;
}
public void setFoo(int foo) {
this.foo = foo;
}
public boolean getBar() {
return bar;
}
public boolean isBar() {
return bar;
}
public void setBar(boolean bar) {
this.bar = bar;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,12 @@ import com.xinra.nucleus.service.DtoImpl
import com.xinra.nucleus.service.TestDto
import groovy.transform.CompileStatic

/**
* Annotation processing for groovy tests is currently broken.
* See https://github.com/tbroyer/gradle-apt-plugin/issues/49
*/
@CompileStatic
class TestDtoImpl extends DtoImpl implements TestDto {
class TestDtoImpl2 extends DtoImpl implements TestDto {

def int foo;
def boolean bar;
Expand Down

0 comments on commit 9597fe5

Please sign in to comment.