Skip to content

Commit

Permalink
Use EISOP dependencies (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: Werner Dietl <[email protected]>
  • Loading branch information
Ao-senXiong and wmdietl authored Jan 6, 2025
1 parent 968f9a0 commit 4d53c0d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ repositories {
mavenCentral()
}
dependencies {
annotationProcessor 'org.checkerframework:templatefora-checker:0.1-SNAPSHOT'
annotationProcessor 'io.github.eisop:templatefora-checker:0.1-SNAPSHOT'
}
```

Expand Down
10 changes: 5 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ configurations {
}

ext.versions = [
checkerFramework: "3.48.2",
eisopVersion: '3.42.0-eisop5',
]

def checkerframework_local = false // Set this variable to [true] while using local version of checker framework.
Expand All @@ -27,15 +27,15 @@ dependencies {
implementation files('${CHECKERFRAMEWORK}/checker/dist/checker.jar')
}
else {
implementation "org.checkerframework:checker:${versions.checkerFramework}"
implementation "org.checkerframework:checker-qual:${versions.checkerFramework}"
implementation "io.github.eisop:checker:${versions.eisopVersion}"
implementation "io.github.eisop:checker-qual:${versions.eisopVersion}"
}

compileOnly "com.google.errorprone:javac:9+181-r4173-1"

// Testing
testImplementation 'junit:junit:4.13.2'
testImplementation "org.checkerframework:framework-test:${versions.checkerFramework}"
testImplementation "io.github.eisop:framework-test:${versions.eisopVersion}"

errorproneJavac "com.google.errorprone:javac:9+181-r4173-1"
}
Expand All @@ -50,7 +50,7 @@ tasks.withType(JavaCompile).all {
publishing {
publications {
maven(MavenPublication) {
groupId = 'org.checkerframework'
groupId = 'io.github.eisop'
artifactId = 'templatefora-checker'
version = '0.1-SNAPSHOT'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,4 @@
@SubtypeOf({TemplateforaUnknown.class})
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE_USE, ElementType.TYPE_PARAMETER})
@TargetLocations({TypeUseLocation.EXPLICIT_LOWER_BOUND, TypeUseLocation.EXPLICIT_UPPER_BOUND})
public @interface TemplateforaBottom {}
4 changes: 2 additions & 2 deletions templatefora-checker-qual/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ repositories {
}

dependencies {
implementation "org.checkerframework:checker:${versions.checkerFramework}"
implementation "org.checkerframework:checker-qual:${versions.checkerFramework}"
implementation "io.github.eisop:checker:${versions.eisopVersion}"
implementation "io.github.eisop:checker-qual:${versions.eisopVersion}"
}

task copySources(type: Copy) {
Expand Down
2 changes: 1 addition & 1 deletion tests/templatefora/SubtypingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class SubtypeTest {
void allSubtypingRelationships(@TemplateforaUnknown int x, @TemplateforaBottom int y) {
@TemplateforaUnknown int a = x;
@TemplateforaUnknown int b = y;
// :: error: assignment
// :: error: (assignment.type.incompatible)
@TemplateforaBottom int c = x; // expected error on this line
@TemplateforaBottom int d = y;
}
Expand Down

0 comments on commit 4d53c0d

Please sign in to comment.