Skip to content

Commit

Permalink
merge from master branch with events generator changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jalander Ramagiri committed Oct 3, 2023
2 parents 29feacf + 739fb09 commit fca78fb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# mvnw is provided as is from the Maven Wrapper project. Can't change it
FILTER_REGEX_EXCLUDE: .*mvnw|.*sdk/src/main/java/dev/cdevents/models/.*
FILTER_REGEX_EXCLUDE: .*mvnw|.*sdk/src/main/java/dev/cdevents/models/.*
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public static void main(String[] args) {
String parentBaseDir = args[2];
String targetPackageDir = sdkBaseDir + File.separator + "src/main/java/dev/cdevents/events";
File folder = new File(parentBaseDir + File.separator + "spec" + File.separator + "schemas");
System.out.println(folder.toPath().toAbsolutePath());
if (folder.isDirectory()) {
File[] files = folder.listFiles((dir, name) -> name.toLowerCase().endsWith(".json"));
if (files != null) {
Expand Down Expand Up @@ -107,10 +106,6 @@ private static SchemaData buildCDEventDataFromJsonSchema(File file) {
String subject = type[SUBJECT_INDEX];
String predicate = type[PREDICATE_INDEX];
String capitalizedSubject = StringUtils.capitalize(subject);
// if (subject.equals("pipelinerun")) {
// capitalizedSubject = capitalizedSubject.substring(0, SUBSTRING_PIPELINE_INDEX)
// + StringUtils.capitalize(subject.substring(SUBSTRING_PIPELINE_INDEX));
// }
String capitalizedPredicate = StringUtils.capitalize(predicate);
String version = type[VERSION_INDEX];

Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
</dependency>
</dependencies>
</dependencyManagement>

<build>
<pluginManagement>
<plugins>
Expand Down
17 changes: 17 additions & 0 deletions sdk/src/main/java/dev/cdevents/events/package-info.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/**
* Copyright 2023-Present https://cdevents.dev/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*
*/

package dev.cdevents.events;

0 comments on commit fca78fb

Please sign in to comment.