Skip to content

Commit

Permalink
upgrade to tapestry 5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
ydylla committed Aug 19, 2021
1 parent b5517e5 commit 55ca893
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
6 changes: 2 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
description = "Utilities for Geb-based browser tests of Tapestry applications"

group = "de.eddyson"
version = "0.45.2"
version = "0.46.0"

repositories {
mavenCentral()
Expand All @@ -27,17 +27,15 @@ artifacts {
}

ext.versions=[
tapestry: '5.6.1',
tapestry: '5.7.3',
geb: '4.1',
spock: '1.3-groovy-2.5',
selenium: '3.141.59'
]

dependencies {
implementation "org.apache.tapestry:tapestry-runner:$versions.tapestry"
implementation "org.apache.tapestry:tapestry-core:$versions.tapestry"
implementation "org.gebish:geb-spock:$versions.geb"
implementation "org.spockframework:spock-core:$versions.spock"
implementation "org.seleniumhq.selenium:selenium-support:$versions.selenium"
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/groovy/de/eddyson/tapestrygeb/JettyGebSpec.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ abstract class JettyGebSpec extends GebReportingSpec {

protected static Logger logger = LoggerFactory.getLogger(JettyGebSpec)

Registry getRegistry(){
static Registry getRegistry(){
return JettyExtension.getRegistry()
}

def getService(Class serviceInterface){
static def getService(Class serviceInterface){
return getRegistry().getService(serviceInterface)
}

Expand Down
9 changes: 4 additions & 5 deletions src/main/java/de/eddyson/tapestrygeb/InjectInterceptor.java
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.eddyson.tapestrygeb;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

import org.apache.tapestry5.ioc.AnnotationProvider;
import org.apache.tapestry5.commons.AnnotationProvider;
import org.apache.tapestry5.ioc.annotations.Autobuild;
import org.apache.tapestry5.ioc.annotations.Inject;
import org.apache.tapestry5.ioc.annotations.InjectService;
Expand All @@ -12,9 +9,11 @@
import org.spockframework.runtime.model.FieldInfo;
import org.spockframework.runtime.model.SpecInfo;
import org.spockframework.util.ReflectionUtil;

import spock.lang.Shared;

import java.lang.annotation.Annotation;
import java.lang.reflect.Field;

public class InjectInterceptor extends AbstractMethodInterceptor {

private final SpecInfo spec;
Expand Down

0 comments on commit 55ca893

Please # to comment.