Skip to content

Commit

Permalink
[ISSUE #15] Set up core module and ASF License (#12)
Browse files Browse the repository at this point in the history
* Set up CI

* Add LICENSE

* Add CheckStyle

* Set up DB

* Add druid StatFilter controller

* sync CI change in apache/eventmesh#4722

* fix(*)1. 完成项目设计 2. 完成项目与模块搭建

* Supplement module dependency relation and fix project info

* Move original Admin into Core & rewrite dependencies

---------

Co-authored-by: laohu <2732554140@qq.com>
  • Loading branch information
Pil0tXia and laohu committed Jan 11, 2024
1 parent b7106e4 commit 818372d
Show file tree
Hide file tree
Showing 52 changed files with 3,254 additions and 206 deletions.
47 changes: 0 additions & 47 deletions .asf.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You 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.
#
*.sh text eol=lf
gradlew text eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
18 changes: 13 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
# specific language governing permissions and limitations
# under the License.
#
name: Build
name: Docker
on:
push:
branches:
- main
tags:
- 'v*'

jobs:
docker:
Expand All @@ -31,12 +31,20 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
username: ${{ secrets.DOCKERHUB_USER }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v4
with:
images: |
apache/eventmesh-dashboard
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: apache/eventmesh-dashboard:latest
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
file: docker/Dockerfile
context: .
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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.
#

name: "Continuous Integration"

on:
push:
branches: [ '*' ]
pull_request:
branches: [ '*' ]

jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
java: [ 8 ]
language: ['java']
runs-on: ${{ matrix.os }}

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Gradle
uses: gradle/gradle-build-action@v2

- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'corretto'
java-version: ${{ matrix.java }}

- name: Build
run: ./gradlew clean build bootJar --parallel --daemon
env:
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
145 changes: 54 additions & 91 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,50 +1,74 @@
.settings/
.project
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.target
./**/.settings/
./**/.project
./**/.classpath
./**/target/


#gitignore文件的内容
.factorypath
.DS_Store
.project
*.prefs
.classpath
.setting/h
.settings/
.idea/
./**/.project
.settings
./**/.settings/
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
*.iws
logs/
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

#忽略eclipse相关
### VS Code ###
.vscode/

### Mac OS ###
.DS_Store

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
org.eclipse.core.resources.prefs
org.eclipse.jdt.core.prefs
org.eclipse.m2e.core.prefs
org.eclipse.wst.common.component
org.eclipse.wst.common.project.facet.core.xml
*.prefs

#忽略java相关的文件
### Java ###
*.class
*.trc
# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
### Package Files ###
*.jar
*.war
*.ear

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

#忽略maven相关的文件
### Maven ###
.target
target/
./**/target/
pom.xml.tag
pom.xml.releaseBackup
pom.xml.versionsBackup
Expand All @@ -54,69 +78,8 @@ dependency-reduced-pom.xml
buildNumber.properties
.mvn/timing.properties

# Built application files
*.apk
*.ap_


#忽略andriod相关的文件
# Files for the Dalvik VM
*.dex
# Generated files
bin/
gen/
# Gradle files
.gradle/
build/
*/build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/
# Log Files
### Log Files ###
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/

target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
logs/
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
Loading

0 comments on commit 818372d

Please sign in to comment.